Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Baysul/Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord

An IRC bot written in Python that uses Markov chains to interact.

Prerequisites

  • Twisted
  • NLTK
  • PyMarkov

Instructions

  1. Install the modules with Pip.
  • Do not install PyMarkov using Pip! Instead, run this command to have submodule download it for you.
git submodule update --init --recursive
  1. Once you've installed the modules, download all of the NLTK collections (maybe not all of them, but that's what I did).
  • I downloaded them using the NLTK downloader which you can run by starting an interactive Python console, then importing the nltk module, and finally invoking its download method.
  1. Run the script like
python Discord.py address [+]port

Adding a plus sign to the port tells the script to connect over a secure connection.

Tip: You can have the script run like a bash script or any other binary program under a UNIX-like platform by adding a she-bang (usually #!/usr/bin/python) to the top.

Configuration

You can't really "configure" anything at the moment. You change the bot's nickname, username, etc. by modifying the Discord class' properties. You can also create hooks - read more about them here.

Todo

  • Implement configuration and SQLite.
  • Fix white-spaces before punctuation.
  • Define logger property in Commands module (maybe use self.bot's?)

About

An IRC bot written in Python that uses Markov chains to interact

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages