A Simple Discord / A2S Bot
Explore the docs 📖
Report Bug 🐛
Request Feature ✋
Latest Release 📥
This is a simple implementation of a discord bot using A2S to query Source (Steam) Game-Servers for Maps.
- Clone the project
- Edit your
configuration.json
- launch
main.py
Youll need the following packages and Python 3.9.7
in order to run the bot:
- discord.py
pip3 install discord.py
- python-a2s
pip3 install python-a2s
- jaraco.docker
pip3 install jaraco.docker
- Get a discord Bot free Token at Discord Developer Portal, you can follow this guide by the Discord.py team
- Clone the repo and create a
configuration.json
gh repo clone immervoll/maphistory-bot
{
"TOKEN": "",
"PREFIX": "!",
"SERVER": {
"IP": "",
"PORT": 27165
},
"INTERVAL": 600.0
}
- Install all the required packages
pip3 install -r requirements.txt
- Enter your Token in
configiguration.json
"TOKEN": "your token here",
- Enter your Server IP and PORT in
configiguration.json
"SERVER": {
"IP": "194.26.183.182",
"PORT": 27165
}
- Invite the Bot to your discord via the Discord Developer Portal
- Profit 💯
use !history
or !maps
on your discord in order to display the last 10 Maps
For more examples, please refer to the Documentation
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Immervoll - @immervoll
Project maphistory-bot: https://github.com/immervoll/maphistory-bot