PossumBot
PossumBot copied to clipboard
Commands not working
Bot is running and online with administrator permissions to the server but doesn't respond to commands.
I have done !myakish and @botname !myakish and it will not grant me admin to the server.
Noticed the bot seems to be going offline shortly after starting it via bash terminal:
<Hostname>:PossumBot-master username$ ./startbot.sh Loading Commands... PossumBot Is Now Activated https://discord.com/api/oauth2/authorize?client_id=1193680097966817411&permissions=8&scope=bot /Users/username/Downloads/PossumBot-master/bot.js:60 let cmd = bot.commands.get(command.slice(prefix.length)); ^
TypeError: Cannot read properties of undefined (reading 'slice')
at Client.
Node.js v20.10.0
Bot is still not successfully staying online but now I have more info to contribute to the thread.
Bot is failing to execute commands and printing in console:
DiscordAPIError: Missing Permissions at RequestHandler.execute (/Users/username/Downloads/PossumBot-master/node_modules/discord.js/src/rest/RequestHandler.js:154:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RequestHandler.push (/Users/username/Downloads/PossumBot-master/node_modules/discord.js/src/rest/RequestHandler.js:39:14) at async module.exports.run (/Users/username/Downloads/PossumBot-master/commands/myakish.js:7:16)
This is despite adding the bot to the server with the permission integer of 8 for Administrator.
im getting the same problem rn i can get it to stay online but when i put in any commands i get this
TypeError: Cannot read properties of undefined (reading 'slice')
same problem here idk what to do
Fixed