stew-chicken-bot

command module
v0.0.0-...-576ad8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Overview

Personal Discord bot serving as a sandbox for various interesting APIs. Used discordgo's pingpong example bot as a starting base.

The bot currently listens to messages in the Discord server and performs an action if given a command. Valid commands are prefixed with ,,, and there are two commands:

  • ,,recipe
  • ,,ps2

Recipe

The recipe command takes one argument, recipe-name, and calls TheMealDB API to search for a recipe by name. Then the URL to the recipe is returned.

,,recipe stew chicken

PlanetSide

The ps2 command has two subcommands which interact with the PlanetSide 2 API (Census), certs and alert. The certs subcommand takes one argument, player-name, and returns that player's certs.

,,ps2 certs cakeisnice

The alert subcommand returns a list of active Alerts within the past hour in PlanetSide 2 Emerald server along with the duration since each one has started in minutes.

,,ps2 alert

Run

Pre-requisites

Invite bot to server

Replace <client_id> with the value from Discord Devleoper Portal

https://discordapp.com/api/oauth2/authorize?client_id=<client_id>&permissions=0&scope=bot
Running
go get github.com/bitscuit/stew-chicken-bot

cd $GOPATH/bin

./stew-chicken-bot -t $TOKEN

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
ps2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL