Skip to content

Commit

Permalink
[fix] crash error with auto-responses
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe authored Jul 30, 2021
1 parent eb9c7e0 commit aceb427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default async (message: Message, client: Client, tempDB: DB, db: Db) => {
) return
} catch (e) {}
// Content of message and sendResponse.
const sendResponse = message.channel.createMessage
const sendResponse = (content: string) => message.channel.createMessage(content)
const command = message.content.toLowerCase()
// Handle answers to trivia
const session = tempDB.trivia[message.channel.id]
Expand Down

0 comments on commit aceb427

Please sign in to comment.