TimboKZ / discord-spoiler-bot

🗣️🛑 Spoiler support for Discord
https://www.npmjs.com/package/discord-spoiler-bot
MIT License
61 stars 19 forks source link

No text above spoilers #15

Closed okazakikun closed 7 years ago

okazakikun commented 7 years ago

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.

vegeta897 commented 7 years ago

Perhaps an unsupported update to Discord.js?

okazakikun commented 7 years ago

Any idea what version is supported? using version 11.1.0

TimboKZ commented 7 years ago

Give me a moment; I'm currently looking into this issue, will update you ASAP.

TimboKZ commented 7 years ago

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.

https://github.com/TimboKZ/discord-spoiler-bot/releases/download/2.0.4-beta/discord-spoiler-bot-2.0.4.tgz

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.

okazakikun commented 7 years ago

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]

TimboKZ commented 7 years ago

My apologies, there was a typo in the wiki. 2nd line of the config should say markAllowAll and not markAllowAllow.

okazakikun commented 7 years ago

I honestly don't know how i didn't spot that :) thanks

TimboKZ commented 7 years ago

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.