Skip to content

versx/PoGoEventWatcher

Repository files navigation

Pokemon Go Event Watcher

Uses ccev/pogoinfo to check data for new event information.

Features

  • Supports multiple Discord servers.
  • Discord channel webhook upon new event data found (also DM).
  • Discord commands to post all or only active events to a channel.

Installation

  1. Clone repository git clone https://github.com/versx/EventWatcher && cd EventWatcher
  2. Install dependencies npm install
  3. Copy config cp src/config.example.json src/config.json
  4. Fill out config.json
  5. Create locales npm run create-locales
  6. Start npm start

Configuration

{
  // Locale translations for Pokemon names
  "locale": "en",
  // Command prefix
  "prefix": "!",
  // Discord bot token
  "token": "<DISCORD_BOT_TOKEN>",
  // List of Discord channel ids to accept bot commands from
  "botChannelIds": ["0000000000000000"],
  // Owner Discord Id for owner only commands
  "adminIds": ["0000000000000000"],
  // List of Discord user ids to send event changes to
  "userIds": ["0000000000000000"],
  // Discord user/role mention string for event changes embed
  "mention": "@0000000000000000",
  // Webhook channel urls to send event changes to
  "webhooks": [],
  // List of guilds to update active events channels with
  "guilds": [
    {
      // Guild ID
      "id": "0000000000000000",
      // Event category channel ID
      "eventsCategoryId": "0000000000000000"
    }
  ]
}

Discord Bot Permissions

Event Voice Channels Category

  • Manage Channel
  • Manage Permissions

Posting Events

  • Send Messages

Commands

  • Name: events
  • Description: Send all events or only active events to a specific channel.
  • Aliases: e
  • Arguments: <#channel_id> [active]

Examples:

# Send all events to #pogo-updates channel
!events #pogo-updates
# Send only active events to #pogo-updates channel
!events #pogo-updates active

Previews

Webhook Example
Voice Channels Example