Skip to content
🤖 Chatbot for the Chatango messaging platform
Python
Branch: master
Clone or download
Pull request Compare This branch is 66 commits ahead, 2 commits behind acleee:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
application
data
img
.gitignore
Pipfile
Pipfile.lock
README.md
config.py
main.py
requirements.txt
setup.py

README.md

acleebot

Python Pandas Ch.py Flask-SQLAlchemy Psycopg2-binary GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

The baddest bot in the game right now. Uses the ch.py Chatango framework for joining and listening for user messages. If a user's chat is a command (starts with !), a function will be fired depending on the type of command.

acleebot

Commands

A directory of all commands can be found here.

Chat commands have 3 properties:

  • Command name: Text which triggers a command (ie: !test)
  • Response: Value returned by a command, either to be sent directly as a chat, or additionally processed depending on command type.
  • Type: Determines logic associated with a command.

Installation

Download the repo and install dependencies:

$ git clone https://github.com/toddbirchard/acleebot.git
$ cd acleebot
$ pipenv update

Create a .env file with your Chatango configuration:

ROOM=yourchatangoroom
USERNAME=yourbotusername
PASSWORD=yourbotpassword
SQLALCHEMY_DATABASE_URI=yourdatabaseuri
SQLALCHEMY_DATABASE_NAME=yourdatabasename
SQLALCHEMY_TABLE=yourdatabbasetable
SQLALCHEMY_DB_SCHEMA=yourpostgresschema

Run the script:

$ pipenv shell
$ python3 main.py
You can’t perform that action at this time.