Skip to content

Commit

Permalink
update messageHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenVelocity committed Jun 18, 2021
1 parent 47b7eda commit f74cfc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Handler/Message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export class Message {
case 'unban':
if (!mod || mentioned.length === 0) return
return this.client.banAction(from, mentioned, command === 'ban', M)
break
case 'hi':
this.client.reply(from, { body: `Hi! ${username}` }, M)
break
Expand Down Expand Up @@ -266,6 +265,8 @@ export class Message {
from,
{
body: await readFile(join(this.client.assets, 'images', 'Error-500.gif')),
//eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore
caption: !mod ? responses.error[500].regular : responses.error[500].mod.replace('{M}', err.message),
type: MessageType.video,
mime: Mimetype.gif
Expand Down

0 comments on commit f74cfc1

Please sign in to comment.