Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steps for Beginner Contributors #176

Open
grantemj opened this issue Apr 7, 2021 · 16 comments
Open

Steps for Beginner Contributors #176

grantemj opened this issue Apr 7, 2021 · 16 comments

Comments

@grantemj
Copy link
Contributor

grantemj commented Apr 7, 2021

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 and node 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 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.

@grantemj
Copy link
Contributor Author

grantemj commented Apr 7, 2021

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!!

@koderbilal
Copy link

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.

@koderbilal
Copy link

koderbilal commented May 7, 2021

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.

@duc03102005
Copy link

hi can u help me for self hosting ? my disc is huuduc#1391 pls add me

@dnaptdpt
Copy link

hello can u help me? pls add me DNA#6396 tysm

@ghost
Copy link

ghost commented Sep 17, 2022

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

@yyagix
Copy link

yyagix commented Feb 5, 2023

Merhabalar owo botta beklenen değerleri girmiş olmama rağmen kendi botum bir türlü açılmadı.

index.js ayrıca bir belirteç hatası verir. Öte yandan owo.js'ye başladım ama başladığım gibi kaldı, herhangi bir bildirim gelmedi. Ayrıca sunucuda aktif değildir.

Bilal selam rica etsem discord üzerinden beni ekleyip anlatabilir misin yapamadım da. yyagix#3393

@koderbilal
Copy link

Merhabalar owo botta beklenen değerler girilmiş olmamasına rağmen kendi botum bir şekilde açılmadı.
index.js ayrıca bir belirteç hatası verir. Öte yandan owo.js'ye başladı ama başladığım gibi kaldı, herhangi bir bildirim gelmedi. Ayrıca sunucuda aktif değildir.

Bilal selam rica etsem discord üzerinden beni ekleyip anlatabilir yanlış yapamadım da. yyagix#3393

discord adresini atabilir misin

@yyagix
Copy link

yyagix commented Mar 26, 2023

Merhabalar owo botta beklenen değerler girilmiş olmamasına rağmen kendi botum bir şekilde açılmadı.
index.js ayrıca bir belirteç hatası verir. Öte yandan owo.js'ye başladı ama başladığım gibi kaldı, herhangi bir bildirim gelmedi. Ayrıca sunucuda aktif değildir.

Bilal selam rica etsem discord üzerinden beni ekleyip anlatabilir yanlış yapamadım da. yyagix#3393

discord adresini atabilir misin

yyagix#8855 teşekkürler

@atifnimran
Copy link

Ok

@muhamdaily
Copy link

Bro, which version of NodeJS are you using? because I use nodeJS 18 installing the module npm install always error

@koderbilal
Copy link

koderbilal commented Jun 25, 2023

As author of #176 (comment)

There is an error in one or more of the installation stages here.

image

here is the problem i have solved which results in giving more errors and not loading the module itself directly. So it's a more chronic problem.

First, after opening the package.json file, delete the "merge-images": "github:ChristopherBThai/merge-images#430c3ab", part.

the part I show in the screenshot below

image

After this stage, it will start to load correctly, but there is another technical problem, it needs windows build tools.

ie https://github.com/nodejs/node-gyp needs it.

I think it is very difficult to install.

I'm telling you the exact solution to the problem, installing "https://github.com/nodejs/node-gyp" on your computer.

"https://www.python.org/downloads/release/python-360/" you download python to your computer from here.

Copy the folder you installed while installing python

Download and install "visual studio 2017 build tools" on your computer.

Type "npm config edit" and enter, a page will open

image

msvs_version=2015
python=C:\Users\VATAN\Desktop\genel\discord\pythonlar\python3.6.0/python.exe

By the way, since I installed the build tools 2015 version on my computer, you can change it according to your request.

Opposite the python section, there will be the folder where you installed python and it will show python.exe.

image

After doing these steps, type "npm install -g node-gyp" on the command line and wait, then type "node-gyp configure" on the command line and enter.

If it gives the following error, it means it has been installed.

image

Finally, you can type npm install and enter.

and finally the modules load without any problems

image

If you remember, we deleted the "merge-images" part above, to install it, type npm install merge-images and enter, it will be installed without any problems.

image

and okay, the modules part of the job is okay, see my article above for other problems.

#176 (comment)

You don't need to do the part below, because you've already done it.

image

@koderbilal
Copy link

image

@koderbilal
Copy link

koderbilal commented Jul 2, 2023

image
image

@atifnimran
Copy link

Ok

@Crazywarde
Copy link

Can you tell how to run the I am waiting for you on discord my username. crazy_warden_555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants