Discord-OwO-Bot
Discord-OwO-Bot copied to clipboard
Steps for Beginner Contributors
Salutations!
I'm a scrub when it comes to discord bots (and honestly node.js stuff too, but ill be able to figure stuff out once i get fully setup), so as I'm trying to setup my local environment to be able to add code and test my changes, I find myself a little lost as to how to move forward.
So far I've done the following:
- obvs fork the repo & whatnot
- install node and do
node install
to get all the needed modules - try to run the bot in command line
- I tried both
node index.js
andnode src/owo.js
- I also tried moving the secret sauce files to the location that the code is expecting them to be
- I'm still getting errors for other missing files (which makes sense, but idk what to do about the files it is looking for)
- I tried both
- I also made my own server to test bots in if needed
But obvs the secret sauce files have dummy data in them right now. So I'm unsure what to replace the dummy data with, and if that is even necessary. Is there a way to bypass the need for these? Basically I'm just confused and not knowledgeable enough lol
Suggestion:
Add a section to the README or repo wiki that lays out [dumbed down] steps of how to get setup to be able to contribute and test and whatnot.
Additionally / alternatively, let me know if there is a place to ask coding questions and whatnot. If there is, I recommend at least putting a link to that in the README.
thx!!
Hi, although I have entered the expected values in the owo bot, my own bot has never been opened somehow.
index.js also gives a token error. I started owo.js on the other hand, but it stayed the way I started it, no notification came. Besides, it is not active on the server.
Additionally / alternatively, let me know if there is a place to ask coding questions and whatnot. If there is, I recommend at least putting a link to that in the README.
thx!!
Hi I managed to run the bot successfully, but there are still more faulty parts in it.
I'm dealing with these bad parts, especially the mysql part.
1.) Let me tell you now, when you download this project, you extract it as a zip to a folder. 2.) You paste the secrets part into the folder where you put that zip, that is, you extracted it, and name the secrets folder as tokens. 3.) You create a file called goodwords.json in the token folder and paste it into it.
[
"exlampe",
"here"
]
4.) You create a file called influxdb.json in the token folder and paste it into it.
{
}
5.) You create a file called scuttester-auth.json in the tokens folder and paste it into it.
{
"token":"",
"admin":"",
"dbl":"",
"weebsh":"",
"patreonID":"",
"patreonSecret":"",
"patreonAccessToken":"",
"patreonRefreshToken":"",
"patreonRedirect":""
}
Now after doing these, you click the folder named Discord-OwO-Bot-master, then open the powerShell application and type npm install
.
There is node_modules
folder from the files after it is loaded, you click on it.
When you enter the merge-images folder from there, you will see that the module has been loaded missing.
You install the merge-images
module in another folder, take the dist
folder from it and add it to your missing merge-images
folder.
is it over ? no it's not over.
Discord-OwO-Bot-master\src\commands\commandList\admin There is a captcha.js file in the folder, inside that file
const captcha = require ('../../../../../ tokens / captcha.js'); delete part of it.
Discord-OwO-Bot-master\src\commands\commandList\utils
There is a covid.js
file in the folder, move it anywhere you want or delete it. because he is wrong I could not fix him.
these are enough to run the bot for now, but the commands part doesn't work.
I couldn't find what caused commands not to work
Now if you notice in the files it gives error due to mysql.
this error does not prevent the bot from running.
Now, to fix this error, there is a mysql.js
file in the Discord-OwO-Bot-master\src\utils folder, now you set the config part in this file. It's okay, now you can run it without any errors.
This is the part I call error, the part that appears in the consol, that is, we fix the errors when running.
I could not fix this part because I was having problems with mariadb on my own computer.
Now you can run it in powerShell by typing node index.js
. Minimum error occurred during booting.
Finally it's over, the bot is working now.
hi can u help me for self hosting ? my disc is huuduc#1391 pls add me
hello can u help me? pls add me DNA#6396 tysm
After many weeks of losing my hair, I FINALLY figured it out. There's a method within the code that makes the bot ignore commands if the guild is not in a whitelist This is why there's no errors appearing and no visible reason as to why nothing is happening.
src/eventHandlers/messageCreate.js
Replace the current guild IDs on line 8 with the ID of your servers you want it to run in. You can now run in debug mode and it will respond to commands