MysteryPancake / Discord-Reposter

Bot for reposting Discord messages (work in progress)
MIT License
92 stars 121 forks source link

Issues Setting Up Bot #30

Closed bluekittyyoyo closed 4 years ago

bluekittyyoyo commented 4 years ago

log I am completely new to creating bots and continually run into issues trying to set it up and run it. I'm unsure of what specifically to ask for as I am totally unfamiliar with this process. Any solutions are appreciated as soon as possible, this is a time sensitive issue that I would like to have dealt with by 3/11/20 11pm Mountain Standard Time. I realize this is specific and short notice, again any help is appreciated. 2020-03-10T08_20_06_985Z-debug.log

MysteryPancake commented 4 years ago

Where is the directory located? It seems that it cannot find the file "reposter.js" in "C:/Users/Kai". If it is in another directory, try using "cd" to set the current directory, then attempt to run "node reposter.js" again. E.G. If the file was on the desktop in a folder called "Reposter":

cd "C:/Users/Kai/Desktop/Reposter"
node reposter.js
MysteryPancake commented 4 years ago

I'm sorry if this is past the deadline, but I am not very active on GitHub and I only just saw this issue.

bluekittyyoyo commented 4 years ago

Thank you for the response, and it is still before the deadline! I made sure the file could be accessed and that fixed the previous issue, however there is a new issue. "Error: Incorrect login details were provided." image I very much appreciate the assistance.

MysteryPancake commented 4 years ago

The login line is causing an error for some reason:

client.login("<SECRET_BOT_TOKEN>").catch(console.error);
may not be replaced with a valid bot token. This does not include the <> symbols, so a token may look like this for example: ``` client.login("MTg-this-IzNzU3OTA5NjA-is.not-DCeFB-a.real-r4DQlO-t0ken-qerT0").catch(console.error); ``` A token can be obtained by logging into [Applications](https://discordapp.com/developers/applications), then clicking on your application -> Bot -> Token -> "Click to Reveal Token".
bluekittyyoyo commented 4 years ago

Put in a new token and that fixed it. The bot appears to be functioning fine! However I have one last question, how does one repost from a channel to one in another server? The bot is in both servers, I am just unsure of formatting the commands. Again, thank you so much!

bluekittyyoyo commented 4 years ago

Nevermind, I figured out how to get channel IDs and give it to the bot to repost from.