From 0289ac7a9d56d1cc197a4cb0b612ccb741e51621 Mon Sep 17 00:00:00 2001 From: khuxkm Date: Wed, 14 Nov 2018 19:26:43 -0500 Subject: [PATCH] Initial code commit --- .gitignore | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 ++ bot.py | 10 +++++ 3 files changed, 128 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 bot.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11614af --- /dev/null +++ b/.gitignore @@ -0,0 +1,115 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..7b6f948 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# sotdbot + +A SOTD bot for the tildeverse. diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..ecff89c --- /dev/null +++ b/bot.py @@ -0,0 +1,10 @@ +import teambot + +class SOTDBot(teambot.Handler,teambot.CommandHandlerMixin): + def handle_command(self,target,nick,text): + pass # change this + +if __name__=="__main__": + channels = "#bots".split() + bot = teambot.TeamBot(channels,"sotdbot","localhost",chandler=SOTDBot) + bot.start()