mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
bugfixes
This commit is contained in:
@@ -15,5 +15,5 @@ bot.onConnect(async () => {
|
|||||||
// await authProvider.refreshAccessTokenForUser(238377856)
|
// await authProvider.refreshAccessTokenForUser(238377856)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log('Bot is ready to accept commands!')
|
console.log('Bot is ready to accept commands!')
|
||||||
}, 1000 * 3)
|
}, 1000 * 5)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ export async function timeout(broadcasterid: string, target: HelixUser, duration
|
|||||||
if (await tmpapi.moderation.checkUserMod(broadcasterid, target)) {
|
if (await tmpapi.moderation.checkUserMod(broadcasterid, target)) {
|
||||||
await tmpapi.moderation.removeModerator(broadcasterid, target)
|
await tmpapi.moderation.removeModerator(broadcasterid, target)
|
||||||
remodMod(broadcasterid, target, duration, tmpapi)
|
remodMod(broadcasterid, target, duration, tmpapi)
|
||||||
await tmpapi.moderation.banUser(broadcasterid, { duration, reason, user: target })
|
|
||||||
}
|
}
|
||||||
|
await tmpapi.moderation.banUser(broadcasterid, { duration, reason, user: target })
|
||||||
return { status: true, reason: '' }
|
return { status: true, reason: '' }
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user