chat

Chat with the bot via Gitter

Classes

GitterListener(app, token, rooms, session, …)

Listens to messages in a Gitter chat room

Documentation

class bioconda_utils.bot.chat.GitterListener(app, token, rooms, session, ghappapi)[source]

Bases: object

Listens to messages in a Gitter chat room

Parameters
  • app (Application) – Web Server Application

  • api – Gitter API object

  • rooms (Dict[str, str]) – Map containing rooms and their respective github user/repo

async handle_msg(room, message, ghapi)[source]

Parse Gitter message and dispatch via command_routes

Return type

None

async listen(room_name)[source]

Main run loop

Return type

None

async shutdown(_app)[source]

Send cancel signal to listener

Return type

None

async start(app)[source]

Start listeners

Return type

None

bioconda_utils.bot.chat.logger = <Logger bioconda_utils.bot.chat (WARNING)>

//webhooks.gitter.im/e/b9e5fad23b9cf034879083a

POST { message: ‘message’, level=’error|normal’ }

Type

https