[ Hybrid(s) of machine learning and irc3 framework ] + netspanning [ irc/matrix ]
Go to file
2022-08-08 06:43:03 -05:00
databases work in progress 2022-08-08 04:22:30 -05:00
plugins work in progress 2022-08-08 04:25:25 -05:00
bot.py work in progress 2022-08-08 06:43:03 -05:00
Pipfile work in progress 2022-08-08 06:41:25 -05:00
README.md work in progress 2022-08-08 06:41:25 -05:00
setup.sh work in progress 2022-08-08 06:43:03 -05:00

MAPLE+G1MP ML/Irc3 Hybrid - Netspanning Variant

To summarize this, this proect is the `m4pl1mp` hybrid, where
that hybrid only uses the irc protocol for communication with
irc servers, this one also uses the matrix protocol and talks
to matrix servers. so it's essentialy two clients wrapped in 
one and not only bridging information between the two networks
but unifying maple's services between them as well.

[ Netspanning ]
- irc
- matrix

[ The actual base hybrid ]
- m4plmp - [sourcecode](https://git.tcp.direct/decoded/m4pl1mp)

[ 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 --user pipenv

Instructions

  1. git clone --recursive https://git.tcp.direct/decoded/maple_netspan.git
  2. cd maple_netspan
  3. sh setup.sh

Append your developer api keys and credentials to .venv/bin/activate. Example below:

https://console.cloud.google.com/apis/credentials
cat .venv/bin/activate
..
export NICKSERV_USERNAME=your_nickserv_username                                  # <- IRCD NICKSERV USER
export NICKSERV_PASSWORD=your_nickserv_password                                  # <- IRCD NICKSERV PASS
export BOT_SASL_USERNAME=$NICKSERV_USERNAME                                      # <- IRCD NICKSERV USER
export BOT_SASL_PASSWORD=$NICKSERV_PASSWORD                                      # <- IRCD NICKSERV PASS
export MATRIX_HOMESERVER=https://matrix.org                                      # <- MATRIX HOMESERVER
export MATRIX___USERNAME=your_matrix_username                                    # <- MATRIX USERNAME
export MATRIX___PASSWORD=your_matrix_password                                    # <- MATRIX PASSWORD
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
  1. edit maple.py - change these to your matrix bot's @username:server so that it self-ignores
guds.add_credentials("@maple.or.g1mp:matrix.org")
guds.add_credentials("@maple:pcriot.org")
  1. edit plugins/net_matrix_plugin.py - changing to your username gives you access to matrix commands
m_sender=="@d:tcp.direct"
  1. pipenv run maple.py