-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Description
Hi,
Hoping you could help with this, whenever I run npm start, the bot starts correctly but always says "- Can Manage Messages: false" although the permission is granted in the server. Then running either !play or !add will cause the below error and the bot will crash. Using !help or !ping works correctly though.
I haven't done much with typescript before and only very lightly worked with discord bots, so sorry if this is a stupid question, but do you have any ideas on how to fix this?
Thanks!
Full log from console (nothing in bot.log):
> rhythm-bot@2.1.5 start /home/django/django_project/rhythmbot/Rhythm-Bot-2.1.6
> tsc && node dist/app
[2021-09-14T20:51:59.570Z] (debug): Bot Online
Guilds: 1
Guild Name: BotTestArena
- Can Manage Messages: false
[2021-09-14T20:51:59.581Z] (debug): Rhythm Bot Online
[2021-09-14T21:01:09.174Z] (debug): Bot Command: !play https://www.youtube.com/watch?v=duakjBfCMG4
/home/django/django_project/rhythmbot/Rhythm-Bot-2.1.6/node_modules/discord-bot-quickstart/lib/models/bot.model.js:10
process.on('unhandledRejection', error => this.log.error('Uncaught Promise Rejection', error));
^
TypeError: Cannot read property 'error' of undefined
at process.on.error (/home/django/django_project/rhythmbot/Rhythm-Bot-2.1.6/node_modules/discord-bot-quickstart/lib/models/bot.model.js:10:52)
at process.emit (events.js:198:13)
at emitPromiseRejectionWarnings (internal/process/promises.js:140:18)
at process._tickCallback (internal/process/next_tick.js:69:34)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rhythm-bot@2.1.5 start: `tsc && node dist/app`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rhythm-bot@2.1.5 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-09-14T21_01_09_527Z-debug.log
Metadata
Metadata
Assignees
Labels
No labels