GitXplorerGitXplorer
f

observer-ward

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
5f2ad2467fed9bdb8dc3adf6507a3d50a8491f25

add new ringmaster; add kez

ffozzle committed a month ago
Unverified
a1d4ad4150e1cd337e48114c0b34cc0f0de9d30a

replace guild emoji with app emoji

ffozzle committed 6 months ago
Unverified
ccb8373bd4944f8fcaa74f1da101c9791e28205f

Fix double-posting issue by always incrementing sequence ID

ffozzle committed 8 months ago
Unverified
fa49ac57bd50daf9fb65a33b5bd14e45cb6e41fd

update FAQ with bot performance degradation situation

ffozzle committed 8 months ago
Unverified
4fe878127d6f27a147029595efe3d00e63dded6b

static site; reduce subs per guild

ffozzle committed a year ago
Unverified
541ddcc7ca83d18a6475a1dc6fac23eb58cd7cdd

more docs

ffozzle committed a year ago

README

The README file for this repository.

Observer Ward

A Discord bot that posts about when players you subscribe to complete a game of DOTA2.

Setup

You'll need to make an application on Discord to setup the bot. Get a bot token and use the scripts/sync-commands to setup the slash commands for your application.

The wrangler.toml file that is checked in is accurate for my own account but will need replacing with your own IDs.

There are also a bunch of environment variables expected to be defined on the worker:

export interface WorkerEnvironment {
  DISCORD_PUBLIC_KEY: string // Your Discord interaction public key
  DISCORD_BOT_TOKEN: string // Discord bot token
  STEAM_WEB_API_KEY: string // Steam web API key (used for verifying valid steam accounts, and polling Steam to know when players complete their match)
  SENTRY_DSN: string // Sentry DSN for exception logging
}

Developing

npm run build will build the project via rollup to the /dist directory.

npm run devstatic will serve the static website.

Honestly I would just make a staging environment. I have not run this locally so I don't know how well the wrangler local development works.

Deploying

Use Cloudflare Wrangler to publish the worker. The static site is deployed automatically via Cloudflare Pages.