Git Product home page Git Product logo

discordwordcloud's Introduction

Documentation for Adding and Hosting Discord Bot

Setting Up the Code (utilizing the terminal)

Create a parent directory to host the code. If the code exists in github go to the directory and run git clone https://github.com/user-name/repo-name.

Create a virtual environment. This will allow you to download packages without affecting your native environment’s software. Run python3 -m venv venv inside your project directory. Activate the virtual environment using source venv/bin/activate.

Now we need to install all the required dependencies for the code to run successfully. Run pip3 install -r requirements.txt.

Setting up the Application and Bot

Next cd into the repo directory and run touch token.txt. This will be the file that will hold the discord application’s bot’s token. Go to https://discord.com/developers/applications, and create an application. Name the application and select Bot from the sidebar. Reveal the token, copy and place it in the token.txt. Enable SERVER MEMBERS INTENT.

https://discord.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=0&scope=bot: Replace the CLIENT ID in the URL with the Application ID in the General tab. At the edited URL, invite the bot to join the selected server.

Finishing Touches

Run the executable that initiated the bot, in this case python3 main.py.

NOTE: For MacOS users, if python3 main.py returns an error, it may be because you need to install certificates. Navigate to Applications > Python 3.9 > Install Certificates.command. Let it run and then run main.py again and the bot should work!

discordwordcloud's People

Contributors

inspirateur avatar srkodes avatar

Stargazers

Ricardo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.