mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 00:51:37 +01:00
bugfixes
This commit is contained in:
@@ -15,5 +15,5 @@ bot.onConnect(async () => {
|
||||
// await authProvider.refreshAccessTokenForUser(238377856)
|
||||
setTimeout(() => {
|
||||
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)) {
|
||||
await tmpapi.moderation.removeModerator(broadcasterid, target)
|
||||
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: '' }
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
|
||||
Reference in New Issue
Block a user