Nortbot
A tinychat bot.
Install / Use
/learn @nortxort/NortbotREADME
Nortbot
A bot for Tinychat chat rooms.
This started out with some improvements to a few files for the bot in the room I go to. This basically led to a complete rewrite of almost everything.
Setup
For a Windows user that wants a bot without having to deal with the Python aspect, I have provided a compiled Windows executable in the Releases section.
It is somewhat based on pinylib-rtc/tinybot-rtc so Python 2.7.16+ is required. It has been tested on Windows 10, Debian 9/10, and Ubuntu 16/18/19.
Requirements
Requirements.txt contains a list of requirements which can be installed with pip install -r /path/to/requirements.txt
Usage
Change config.ini settings to fit your needs. Don’t forget to change the default key! Then run nortbot.py.
For a detailed explanation of the different config settings, read through the config settings.
Command explanations can be found HERE.
Compiling
In order to compile simply run compile.bat, located in the compile folder. You will need the following:
- Python 2.7.16+ in your path.
- Possibly Microsoft Visual C++ 2008 Redistributable Package.
- May need elevated permission on first run.
More details about pyinstaller's requirements can be found HERE
Using Pyinstaller
You will need pyinstaller, it can be installed with the following command: pip install pyinstaller
Next, change directory to the directory containing the source code: cd path/to/source/code/files
from there run: pyinstaller --onefile nortbot.py.
2 new directories will be created, build and dist. The dist directory will contain nortbot.exe. Copy cacert.pem and config.ini to the dist directory.
You can now run nortbot.exe!
Submitting an issue
Please read through the ISSUES before submitting a new one. If you want to submit a new issue, then use an ISSUE TEMPLATE. Please use an issue template, they're there for a reason! If you need more help or have questions that are not already answered in the issues, you can join this Discord server.
Author
License
The MIT License (MIT) See LICENSE for more details.
Acknowledgments
Thanks to the following people, who in some way or another, have contributed to this project:
