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

Bot used to report GitHub changes on Pokemon Showdown chatrooms

License

Notifications You must be signed in to change notification settings

KamilaBorowska/GitHub-Bot-Legacy

Repository files navigation

GitHub Bot

This bot receives commit data from GitHub, and posts in the Showdown chat.

It can be configured using npm config set psdevbot:PROPERTY_NAME. There are properties that can be configured for a bot.

  • nickname - specifies nickname used for the bot on Showdown
  • password - specifies password of given account
  • room - specifies room to join
  • secret - secret specified during webhook creation. To generate one, use ruby -rsecurerandom -e 'puts SecureRandom.hex(20)' command.
  • webhookport - port on which bot listens (default 3420)
  • server - server address (default sim.smogon.com)
  • serverport - server port (default 8000)
  • serverid - server identifier used for logins (default showdown)

To set repository to trigger bot, access settings panel, pick "Webhooks & Services", select "Add webhook", set payload URL to http://bot-hosting-url.example:3420/github/callback, leave content type as application/json, set secret to specified value, and pick "Push" and "Pull Request" events as events to react to.

To run the bot, use npm start.

About

Bot used to report GitHub changes on Pokemon Showdown chatrooms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published