Skip to content

Discord bot communicating with api.acmcsuf.com

License

acmcsufoss/capyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

capyBot

Discord.py is a Python library for building Discord bots. It provides an easy-to-use interface for interacting with the Discord API, allowing developers to create bots that can perform a wide range of tasks, such as moderating channels, automating tasks, and responding to user commands.

Using discord.py, developers can create custom commands, event listeners, and message handlers to interact with the Discord API. They can also integrate external APIs, such as weather APIs or news APIs, to provide additional functionality to their bots.

How to Run Locally

  1. Install Python 3.8 or later

  2. Create a virtual environment:

    python3 -m venv venv
    
  3. Activate the virtual environment:

    Linux

    source venv/bin/activate
    

    Windows

    venv/scripts/activate
    
  4. Install dependencies:

    pip install -r requirements.txt
    
  5. Create a .env file following the format of .env.example and fill in the required values

  6. Run the app:

    python3 src/client.py
    

Generating an invite link

  1. Go to the Discord Developer Portal and select your bot application.

  2. Navigate to the OAuth2 tab on the left-hand side of the screen.

  3. Under the OAuth2 URL Generator section, select the bot checkbox under the Scopes section.

  4. Scroll down to the Bot Permissions section and select the permissions you want your bot to have.

  5. Copy the generated OAuth2 URL under the Scopes section.

  6. Paste the generated URL into your browser and authorize the bot to join your server.

Resources

About

Discord bot communicating with api.acmcsuf.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages