general purpose bot based on irc3, purpose is to be able to make modules on the fly almost effortlessly.
.[d]. 99a1504537 | ||
---|---|---|
plugins | ||
README.md | ||
_d_d3vg1mp.ini | ||
_d_d3vg1mp_db.json | ||
_d_g1mp.ini | ||
_d_g1mp_db.json | ||
emote.db | ||
requirements.txt | ||
run_d_d3vg1mp |
setting up g1mp
apt install python3
apt install python3-pycurl
apt install python3-pip
python3 -m pip install virtualenv
virtualenv env -p python3
source env/bin/activate
-
append your dev/api keys to env/bin/activate for environmentals
pip install -r requirements.txt
irc3 _d_g1mp.ini
setting up d3vg1mp
-
irc3 _d_d3vg1mp.ini
-
when doing development, create a different ini, in your ini use a different database name, your plugins also use a different filename. you dont want to have your development affecting your main running bot code or database.
e.g. g1mp non-dev filenames: _d_g1mp.ini, _d_g1mp_db.json - add a plugin example: add "plugins.youtube_plugin" to the file _d_g1mp.ini - create the plugin filename: plugins/youtube_plugin.py g1mp develop filenames: _d_d3vg1mp.ini, _d_d3vg1mp_db.json - add a plugin example: add "plugins.d3v_youtube_plugin" to the file _d_g1mp.ini - create the plugin filename: plugins/d3v_youtube_plugin.py
EXAMPLE OF DEVELOPMENT WORKFLOW
if you were working on a soundcloud plugin
- add plugins.d3v_soundcloud_plugin to _d_d3vg1mp.ini
we will be editing our plugin so we will want to maybe remove the plugin, paste new code
and then restart the bot over and over again until we are done. see below or run bash run_d_d3vg1mp
- rm plugins/d3v_soundcloud_plugin.py
- nano plugins/d3v_soundcloud_plugin.py
- irc3 _d_d3vg1mp.ini