Closed okazakikun closed 7 years ago
Perhaps an unsupported update to Discord.js?
Any idea what version is supported? using version 11.1.0
Give me a moment; I'm currently looking into this issue, will update you ASAP.
Try installing the package below by hand. This might fix your issue though I am not quite sure yet what caused it in the first place.
To install it, place the tgz
file in your project directory and run npm install --save discord-spoiler-bot-2.0.4.tgz
.
If this will work for you I will release it on NPM.
Works perfectly now, only issue i have now is marking others spoilers, here
my index.js is
'use strict';
const SpoilerBot = require('discord-spoiler-bot');
let config = {
token: 'secret',
markAllowAllow: true,
};
let bot = new SpoilerBot(config);
bot.connect();
apologies if i'm being stupid about this and have misread the docs.
[Re-posted to take out my secret]
My apologies, there was a typo in the wiki. 2nd line of the config should say markAllowAll
and not markAllowAllow
.
I honestly don't know how i didn't spot that :) thanks
Good to hear you're all sorted. I'm closing this issue and will release v2.0.4 on NPM in a couple of minutes.
Unable to figure out this one. Using node 7.10.0 NPM 4.5.0 What it looks like here )``` user@user:~/discord$ node index.js --trace-warnings Discord Spoiler Bot is running... (node:90827) DeprecationWarning: TextChannel#sendFile: use TextChannel#send instead (node:90827) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): DiscordAPIError: Unknown Message (node:90827) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.