Skip to content

stepaniukm/hellodev-discord-bot

 
 

Repository files navigation

Type of Web Discord Bot

All Contributors

Getting Started

Prepare project

Run npm install to install all dependencies

[Based on windows system]

If an error with Python occurs open the system console with admin privileges and type:

npm --add-python-to-path='true' --debug install --global windows-build-tools

If that was the case run again npm install to install dependencies properly.

Setup environmental variables

Create .env.dev file based on .env.dev-sample (just copy and rename it). Fill the API keys with 0 if you don't have them.

Connect to development bot

Create a new discord server where you will be testing your bot.

Follow this tutorial to create a new bot. Then add it to your server.

Use the bot token in .env.dev file.

Run the server

Use npm run dev to start the server.

You should get this in your console, which suggests that everything went ok.

Server running!
Logged in as [Bot Name]!

You will probably get some errors like "Failed to connect to database" as well. Don't worry about them if you don't need the database.

When you log into the discord server you should see that your Bot is active. You can use one of the existing commands like !co to try it out :)

Contributors ✨

Thanks goes to these wonderful people:


Deeadline

Andrew Welc

jkonieczny

Porithe

This project follows the all-contributors specification. Contributions of any kind welcome!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.6%
  • Other 1.4%