antoinemadec / zulipbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. 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


Languages

Language:Python 100.0%