A Discord bot dedicated to Terry Davis and TempleOS.
TempleBot is a simple python Discord bot that provides useful information about Terry Davis, the creator of TempleOS, and his unique operating system, TempleOS. This bot aims to educate and inspire users about Terry Davis's remarkable journey, his accomplishments, and the fascinating world of TempleOS.
discord.py librarygit clone https://github.com/your-username/TempleBot.gitcd TempleBot
pip install -r requirements.txtCreate a new Discord bot and obtain its token from the Discord Developer Portal.
Set the bot token as an environment variable named DISCORD_BOT_TOKEN.
Run the bot:
python main.pyOnce the bot is running, you can interact with it using the following commands:
!terry: Get biographical information about Terry Davis.!templeos: Learn about the TempleOS operating system.!fact: Receive an interesting fact or quote about Terry Davis or TempleOS.!gif: Receive a random Terry Davis or TempleOS related GIF, some GIFs are more rare to occur than others.!resources: Get links to relevant resources and documentation.!colors: Display the 16-color palette used in TempleOS with color names and hex codes.Note
Contributions are welcome! If you find any issues or want to add new features, feel free to open an issue or submit a pull request.
Here's how you can contribute:
Fork the repository
Create a new branch:
git checkout -b my-new-featuregit add --allgit commit -am 'Add some feature'git push origin my-new-featureThe bot uses JSON files to store quotes and GIFs. Here's an explanation of the structure:
The quotes.json file contains an array of quotes. Each quote is a string. Here's an example:
{
"quotes": [
"This is a quote!"
]
}Important
To add a new quote, simply append it to the quotes array.
The gifs.json file contains an array of GIF objects. Each object has two properties: url (the URL of the GIF) and probability (an integer representing the probability of displaying the GIF). Here's an example:
{
"gifs": [
{
"url": "https://example.com/gif1.gif",
"probability": 90
},
{
"url": "https://example.com/gif2.gif",
"probability": 90
},
{
"url": "https://example.com/gif3.gif",
"probability": 15
}
]
}Important
To add a new GIF, append a new object to the gifs array with the appropriate url and probability values.
This project is licensed under the MIT License.
If you find this project valuable, please consider giving it a ️ on GitHub!