Open grainsoflight opened 4 years ago
This works as a way to get in touch with me. Until and unless I make a github for the other bot, which I will make a note on this one if I do that.
It is hard to know what is going wrong from just that but I can guess at some likely causes: 1) check to make sure that the bot has the required permissions to see the chat (that it can read the message history of the channel that you are sending it messages in) 2) check to make sure that the message you are sending it is correct (the bot is not good about telling you when it doesn't understand commands and just fails silently)
If those aren't the issues I would need more information to help fix it. You can look at the logs in the glitch project to see if any error message appears there. (Tools (in the bottom left) -> Logs). If you do see an error message you can add it to this thread.
Hopefully that gives you some directions to go look for the error.
An error occurred in the categorize middleware: TypeError: Cannot read property 'indexOf' of undefined
at isMention (/rbd/pnpm-volume/9edb1cd0-2e0c-4e54-85db-7a721babbdc9/node_modules/.registry.npmjs.org/botkit-discord/0.1.3/node_modules/botkit-discord/middleware/categorize.js:1:52)
at categorize (/rbd/pnpm-volume/9edb1cd0-2e0c-4e54-85db-7a721babbdc9/node_modules/.registry.npmjs.org/botkit-discord/0.1.3/node_modules/botkit-discord/middleware/categorize.js:21:6)
at Ware.module.exports.handler (/rbd/pnpm-volume/9edb1cd0-2e0c-4e54-85db-7a721babbdc9/node_modules/.registry.npmjs.org/botkit-discord/0.1.3/node_modules/botkit-discord/middleware/categorize.js:33:2)
at Ware.
Thanks for showing the error! It appears that the error is occurring because the user who is talking to the bot is not in a voice channel when they do so, the bot joins the voice channel that the user is in. So it should work if you join a voice channel before talking to the bot.
This shows the issue with not having good documentation or error handling 😅, sorry that it wasn't clear.
let me know if it works when you are in a voice channel.
I couldn't figure out how to contact you via glitch, but the new bot you built is unresponsive when you try to give it commands in discord.