The bot will send a welcome message to users once a certain time threshold or member count is reached. Additionally, the bot will apply emojis to the welcome message that match the emojis from the user's roles.
- Features
- Technologies Used
- Getting Started
- Prerequisites
- Installation
- How to create a venv (windows)
- Install and add packages
- Deployment
- Usage
- File Structure
- Contributing
- License
- Welcomes new members with a friendly message
- Sends messages after a time or member threshold is reached
- Adds role-based emojis to welcome messages
This project is written in Python using the discord.py framework.
- A Discord account and server
- TBD
- Clone the repository and navigate to the directory:
git clone [email protected]:intelagense/howdy.git
Navigate to the menu bar and select Terminal > New Terminal. If the terminal gives you an error in the following steps, try switching to a different terminal type. For example, if PowerShell isn't working, you can switch to Command Prompt or another available terminal.
In the terminal, navigate to your project directory (if not already there) and run the following command to create a virtual environment:
py -3 -m venv .venv
here .venv
is the name of your virtual environment.
Activate the virtual environment using the following command:
.venv\Scripts\activate
After activation, you should see (.venv) at the beginning of the terminal prompt, indicating that the virtual environment is active.
VS Code needs to know that you are using a virtual environment. To select the interpreter:
- Press Ctrl+Shift+P to open the Command Palette.
- Type Python: Select Interpreter and select it.
- Choose the interpreter located in the env folder. It should look something like this:
.venv\Scripts\python.exe
When you are done working, you can deactivate the virtual environment by running:
.venv\Scripts\deactivate
Make sure to have pip installed
Once you have cloned the project, you should see a requirements.txt
file. This file contains the list of required packages.
In another file you can see how to setup the venv, make sure you have done this.
With the virtual environment activated, install the required packages listed in requirements.txt:
pip install -r requirements.txt
This command reads the requirements.txt file and installs all listed packages into your virtual environment
To ensure that all packages are installed correctly, you can list the installed packages:
pip list
If you need to add additional packages to this project:
- Install the package using pip:
pip install <package_name>
- Update requirements.txt to include the new package:
pip freeze > requirements.txt
This command will overwrite the existing requirements.txt file with a new list of all installed packages and their versions.
Never do this without installing the requirements first.
TBD
(TBD)
(TBD)
howdy-bot/
├── start here
└── TBD
We welcome contributions to this project! If you have an idea for a new feature or have found a bug, please open an issue. If you'd like to contribute code, please create a pull request.
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.