A Yahoo Fantasy Sports bot for Discord
Project description
Harambot
An interactive Yahoo Fantasy sports bot for Discord.
Commands
/ping - Gives the latency of harambot
/RIP - Pay respects
/standings - Returns the current standings of the current league
/roster "Team name" - Returns the roster of the given team
/stats "Player Name" - Returns the details of the given player
/trade - Create poll for latest trade for league approval
/matchups - Returns the current weeks matchups
/waiver - Returns the waiver wire tranasactions from the previous 24 hours
/configure - Configure the bot for your guild
You can find example output of these commands here
Prerequisites
In order to properly configure your bot you will need the following:
Visit our wiki for a step by step guide on how to obtain these values.
Quick Start
Install package from PIP
-
Install the harambot package using pip
pip install harambot -
Export the following environment variables
export DISCORD_TOKEN='[YOUR DISCORD TOKEN]' export YAHOO_KEY='[YOUR YAHOO API CLIENT ID]' export YAHOO_SECRET='[YOUR YAHOO API CLIENT SECRET]' export DATABASE_URL='[YOUR DATABASE URL]' -
Run the bot
harambot
Setup
Add the bot to your guild
- Generate a OAuth url from the discord developer portal using the bot scope and the following permissions:
- Send Messages
- Send Messages in Threads
- Embed Links
- Attach Files
- Read Message History
- Add Reactions
- Use Slash Commands
The permission value should be 277025507392
- Set the gateway intents
In order for the bot to work properly it requires the following intents:
- Sever Members Intent
- Message Content Intent
- Navigate to the generated url in a web browser and authorize the bot for your guild
Configure your guild
- Once your bot is added to your guild you can configure it by sending a direct message to the bot with the following command:
- Use the Login with Yahoo button to authenticate with Yahoo and get your Yahoo token
- Use the Configure Guild button to configure your guild for the bot
- You can reconfigure your guild by running the configure command and clicking the Configure Guild button.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file harambot-0.3.1.tar.gz.
File metadata
- Download URL: harambot-0.3.1.tar.gz
- Upload date:
- Size: 5.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.7 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6782e0cbf21d170f73a40214398a96048963743df39207965550dc9637b73c0
|
|
| MD5 |
2381f1bc01f15116f736d565a6d19bb3
|
|
| BLAKE2b-256 |
e91607273e1ae43609c58e7c8659ab596f00d687eca4905083d4833ea7de6c10
|
File details
Details for the file harambot-0.3.1-py3-none-any.whl.
File metadata
- Download URL: harambot-0.3.1-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.7 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e21ed526b9b0147a1a2ec1625418e1a90e291928e4622320de2ee75b1590b70
|
|
| MD5 |
3b42d519144d847a8ca2eaacc207214f
|
|
| BLAKE2b-256 |
ca872a2ae1e584ac113adc3b395193f0e71e94f467d5b36113c6e26d24fba03b
|