segb

command module
v0.0.0-...-ba647bc Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 11 Imported by: 0

README

Segb

This is a discord bot based on discordgo.


Main Features

  • Manage uploaded GIFs by storing their URLs and tags in a google spreadsheet
    • Actually, other contents are also supported, whatever a google spreadsheet cell can save
  • Post the corresponding GIF (content) when queried

Prerequisites

  • A google spreadsheet

  • A google service account

    • With its json key
    • Have read+write permission to the above google spreadsheet
  • A discord Bot

    • With its token
    • Have at least view+send message permissions to your discord server/channel
  • C# package

  • A config file name with config.json in root with following content

{
 "token": "discord-token",
 "prefix": "prefix",
 "delay": 15,
 "channel": "channel id",
 "guild": "guild id"
}
  • A token file name with token.json in root with following content
{
 "Email": "mail",
 "PrivateKey": "key",
 "TokenURL": "url",
 "Scopes": [
  "scope"
 ]
}

Usage

The following commands should be called with a prefix ~

  • help|h
    • Show help message
      • ~help
  • add|a [TAG1 TAG2 ... TAGN ] CONTENT
    • Add new content
      • ~add Oozono Momoko Kawaii
  • list|l
    • Show content added in this server
    • ~list [TAG1 TAG2 ... TAGN ]
    • ~list [Author|author]=[@User] [TAG1 TAG2 ... TAGN ]
      • ~list oozono momoko
      • ~list Author=@scream870102 oozono momoko
      • ~list Author=@scream870102
  • show|s [TAG1 TAG2 ... TAGN ]
    • Show the content filtered by TAGS in the database
    • At least one TAG should be provided
      • ~show Oozono Momoko

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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