Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

butlerx/butlerbot-dublin-bus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dublin Bus

This plugin retrieves and shows information for Dublin Bus stops.

Install

yarn add butlerbot-dublin-bus

Create a file in the plugin dir as follows

import dBus from 'butlerbot-dublin-bus';
export default dBus({
  channels: ['#butlerbot'],
  channelsToExclude: [],
  channelsToJoin: ['#butlerbot'],
});

Commands

  • !dbus stop_number - Shows the next five buses due at that stop, so !dbus 497 will show information for Stop 497.
  • !dbus stop_number route (route) ... (route) - Shows the next five buses for the desired routes. So !dbus 497 14 27b will show information about stop 497, for only the 14 and 27b routes.

Configuration

there are three settings.

  • channels - Lists the channels this plugin can be used in. If you wish it to be usable in all channels the bot is in, set this to all.
  • channelsToExclude - Lists the channels the plugin cannot be used in if you have chosen that the plugin can be used in all channels but want to exclude one in particular
  • channelsToJoin - This is an array of channels the bot should join when this plugin is loaded.

About

dublin bus plugin for butlerbot

Resources

License

Stars

Watchers

Forks

Packages

No packages published