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.
- Display biographical information about Terry Davis
- Explain the purpose, features, and creation of TempleOS
- Share interesting facts and quotes related to Terry Davis and TempleOS
- Provide links to relevant resources and documentation
- Python 3.6 or higher
discord.py
library
- Clone the repo:
git clone https://github.com/your-username/TempleBot.git
- Install the required dependencies:
cd TempleBot
pip install -r requirements.txt
-
Create 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.py
Once 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-feature
- Make your changes and then add them:
git add --all
- Make your changes and commit them:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
The 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.
- Terry Davis for his remarkable work on TempleOS.
- The Discord.py library and its contributors for providing a powerful Python API for building Discord bots.
If you find this project valuable, please consider giving it a ⭐️ on GitHub!