WoofBot is a Discord bot created using Python 3.11.3 that provides various commands to enhance your Discord server experience, including:
-
Greeting users
-
Rolling dice
-
Getting quotes
-
Getting facts about Chuck Norris
-
Getting weather reports
-
Getting help
-
Getting information about the creator
-
Listing all of the commands
WoofBot responds to the following commands:
#hello
: Greet the bot and receive a warm welcome.#roll
: Roll a dice and get a random number between 1 and 6.#quote
: Get an inspirational quote.#fact
or#facts
: Get a random fact about Chuck Norris.#weather (city name)
: Get the weather report of a specified city.#help
: Display the help menu with available commands and their usage.#creator
: Get information about the creator of the bot.#commands
: Display a list of all available commands.
To receive responses in direct messages (DMs), prefix the command with ?#
. For example, ?#hello
will send the greeting message to your DM instead of the channel.
WoofBot utilizes the following APIs to provide certain commands:
- zenquotes.io: Provides random quotes for the
#quote
command. - api.chucknorris.io: Fetches random facts about Chuck Norris for the
#fact
command. - api.openweathermap.org: Retrieves weather data for the
#weather
command. Note that you need to replace{city}
with the desired city name and{aku.openWeatherApi}
with your OpenWeather API key.
Make sure to obtain your own API key and replace the placeholder {aku.openWeatherApi}
with your actual API key in the weather API URL.
To set up WoofBot on your own server, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/woofbot.git
- Install the required dependencies:
pip install discord
andpip install requests
- Set up the required environment variables:
DISCORD_TOKEN
: Your Discord bot tokenOPENWEATHER_API_KEY
: Your OpenWeather API key
- Start the bot:
python bot.py
Note: Ensure you have Python 3.6 or higher installed on your system.
Once the bot is running and added to your server, you can start using the commands in any text channel.
To interact with WoofBot, simply type the desired command in a text channel. For example, typing #hello
will trigger the greeting message. Remember to prefix the command with ?#
if you want to receive the response in DM.
Feel free to explore all the available commands and make the most out of WoofBot!
This project is licensed under the Apache License - see the LICENSE file for details.