Skip to content

jrmsgr/zulipbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zulipbot

Use Zulip to control the world.

Rationale

This robot implements commands that the user can trigger on the Zulip chat.
Those commands do things such as:

  • printing posts, pics, gifs from Reddit
  • playing music from Reddit
  • playing music from Youtube
  • making jokes
  • giving you a weather report

Requirements

Python Packages

pip3 install -r requirements.txt

Progams

  • cvlc: audio/video player
  • pulseaudio: manages volume and audio outputs

Setup Files

Add the following files in this directory:

  • zuliprc, used by Zulip's client. Create a section called zulipbot. See Zulip documentation
  • praw.ini, used by Reddit's client. See praw documentation
  • msg_filter.json, used to filter Zulip messages the bot should respond to. See example below
{
    "type": "stream",
    "display_recipient": "MyChannel"
}

Usage

./main.py

Then, in Zulip, type:

!help

Acknowledgements

Thanks to my buddy T3lchar for letting me steal his bot: https://github.com/T3lchar/zulip_bot

FAQ

Q: The command !weather fails with an SSL error, what's wrong?
A: Take a look at this issue and execute ./bin/install_certifi.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%