pkg

package
v0.0.0-...-99e36ab Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 5 Imported by: 0

README

_`core` is responsible for iris main functionality and logics_

_`commands` is commands handler_

→ microservices

- cache
- pubsub
- rabitmq

- metrics
    - prometheus

TODO:
- added ability to intercept `status` → interceptor.
- fix `log` global storages greedy reset.

→ should migrate to new command handler before modifying our pomodoro code.

`runner` should be our entry for running the bot

setup templates for generate readme accordingly

setup a testRunner to mimic all Getter testing to reduce boiler code

Documentation

Index

Constants

View Source
const (
	BaseAuthURLTemplate string = "https://discord.com/api/oauth2/authorize?client_id=%s&scope=bot"
)

Variables

View Source
var (
	ConcertinaClientID, _      = configparser.Register("concertina.clientid", "ClientID of test bot", nil)
	ConcertinaClientSecrets, _ = configparser.Register("concertina.clientsecret", "ClientSecret of test bot", nil)
	ConcertinaBotToken, _      = configparser.Register("concertina.authtoken", "authentication token of test bot", nil)
	IridaceaeClientID, _       = configparser.Register("iris.clientid", "IridaceaeClientID of the bot", nil)
	IridaceaeClientSecrets, _  = configparser.Register("iris.clientsecret", "ClientSecret of the bot", nil)
	IridaceaeBotToken, _       = configparser.Register("iris.authtoken", "authentication token of the bot", nil)
	CmdPrefix, _               = configparser.Register("iris.cmdprefix", "prefix for iris", "-ir ")
	Loaded                     = false
	CI                         = true
)

Functions

func GetBotToken

func GetBotToken(token *configparser.Options) string

GetBotToken will handles authToken.

func GetRootDir

func GetRootDir() string

GetRootDir will returns root dir of iridaceae.

func LoadConfig

func LoadConfig(clientid, clientsecret, token *configparser.Options) error

LoadConfig will load given clientid, secrets, and token for setting bot.

func LoadGlobalEnv

func LoadGlobalEnv() error

Types

This section is empty.

Directories

Path Synopsis
Package acceptmsg provides a message models for discordgo which can be either accepted or declined via reactions.
Package acceptmsg provides a message models for discordgo which can be either accepted or declined via reactions.
Package configparser defines some default configs handler including a configparser parser with ability to update value dynamically
Package configparser defines some default configs handler including a configparser parser with ability to update value dynamically
Package deprecatedrunner contains v1 bot functionality, deprecated in next update.
Package deprecatedrunner contains v1 bot functionality, deprecated in next update.
Package helpers contains helpers functions that can be use globally.
Package helpers contains helpers functions that can be use globally.
Package log provides a structured context logger.
Package log provides a structured context logger.
Package pomodoro provides functionality for pomodoro techniques.
Package pomodoro provides functionality for pomodoro techniques.
Package rosetta is iridaceae internal command parser.
Package rosetta is iridaceae internal command parser.
ratelimit
Package ratelimit provides a basic token-bucket limiter for rosetta router.
Package ratelimit provides a basic token-bucket limiter for rosetta router.

Jump to

Keyboard shortcuts

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