Skip to content
This repository has been archived by the owner on Jan 2, 2022. It is now read-only.
/ hermes Public archive

Hermes is a slack app used by LineageOS's maintainers slack for various tasks.

License

Notifications You must be signed in to change notification settings

lineageos-infra/hermes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hermes

Hermes is a python 3 slackbot wrapper.

A very basic bot looks like this:

from hermes import bot

bot = Bot()

bot.datastore_._kind = bot.datastore.REDIS

@bot.command()
def whoami(event, args):
    print(f"You are {bot.util.get_username(uid)}")

@bot.job(60):
def run_task():
    bot.slack_client.api_call("chat.postMessage", channel="C0XXXXXX", text="I ran a task!")

@bot.regex(r".*")
def regex_test(event, match):
    print(f'You said {event.get("message")}')

if __name__ == "__main__":
    bot.run()

About

Hermes is a slack app used by LineageOS's maintainers slack for various tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •