[ Hybrid(s) of machine learning and irc3 framework ]
databases | ||
plugins | ||
.gitignore | ||
maple.ini | ||
README.md | ||
requirements.txt |
MAPLE+G1MP ML/Irc3 Hybrid
[ Hybrid of machine learning and irc3 framework ]
- Maple - [sourcecode](https://git.tcp.direct/decoded/Maple)
- g1mp - [sourcecode](https://git.tcp.direct/decoded/g1mp)
Prerequisites
apt install python3
apt install python3-pip
python3 -m pip install virtualenv
Instructions
git clone --recursive https://git.tcp.direct/decoded/m4pl1mp.git
cd m4pl1mp
virtualenv env -p python3
source env/bin/activate
Append your developer api keys to env/bin/activate. Example below:
cat env/bin/activate
..
export DEVELOPER_KEY="1394823190182390182382383215382158321" # <- YOUTUBE API KEY
export CONSUMER_KEY="2151235132512351235123512351325231" # <- TWITTER API KEY
export CONSUMER_SECRET="514512521345234523452345234523452345234523452" # <- TWITTER API KEY
export ACCESS_TOKEN_KEY="24513429875209348502934850294898348034850293485203948592" # <- TWITTER API KEY
export ACCESS_TOKEN_SECRET="523490582034985203948520394804884820934850923485" # <- TWITTER API KEY
If you don't have either 'twitter' or 'youtube' api keys set irc3 will crash when booting.
you will have to comment out those plugins in the maple.ini file. developer api keys are free, signup.
pip install -r requirements.txt
lookover the maple.ini file and make changes, ircname/ircservers/admin/autojoins/etc.
the plugins/auth.py is used to identify to nameserver but you can also use sasl through maple.ini.
this plugin should also be disabled in the maple.ini file unless you are sending credentials to identify.
irc3 maple.ini
TODO:
?
DONE:
- revise plugins/maple_plugin.py to run async inside irc3
- do callback exception handling
- update maple_plugin.py to use a queue stack
NOTE:
- some ways to run maple as a background task
- screen + run
irc3 maple.ini
+ detach session - tmux + run
irc3 maple.ini
+ detach session irc3 maple.ini & disown