[ Hybrid(s) of machine learning and irc3 framework ]
Go to file
[d] a056ae0abf Update 'plugins/maple_plugin.py'
modes,spans,memories,wisdom
2022-02-03 20:38:39 +00:00
databases patch 2022-02-01 22:44:42 -06:00
plugins Update 'plugins/maple_plugin.py' 2022-02-03 20:38:39 +00:00
.gitignore update 2021-12-01 03:26:10 -06:00
maple.ini finished 2022-02-02 22:30:22 -06:00
README.md finished 2022-02-02 22:33:03 -06:00
requirements.txt patch 2022-02-01 22:44:42 -06:00

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

  1. apt install python3
  2. apt install python3-pip
  3. python3 -m pip install virtualenv

Instructions

  1. git clone --recursive https://git.tcp.direct/decoded/m4pl1mp.git
  2. cd m4pl1mp
  3. virtualenv env -p python3
  4. 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 then irc3 will crash when executing.

you will have to comment out those plugins in the maple.ini file. developer api keys are free, signup.

  1. 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.

  1. irc3 maple.ini

TODO:

?

DONE:

  1. revise plugins/maple_plugin.py to run async inside irc3
  2. do callback exception handling
  3. update maple_plugin.py to use a queue stack

NOTE:

  1. 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