config

package
v0.0.0-...-c95c7f1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BSRoleNum = [8]int64{}
View Source
var ChanRole = map[string]int64{}

[channelID]roleID

View Source
var Data = ConfigData{}
View Source
var EmojiNum = [4]string{}
View Source
var RSEmoji = map[int64]string{}

[roleID]emoji

Functions

func ReadConfig

func ReadConfig(path string) error

read config.json and get a Token

Types

type ConfigData

type ConfigData struct {
	Prefix string
	Token  string
	RunMod string

	EmojiPointDown string
	EmojiRedCircle string
	EmojiCheckMark string
	EmojiCrossMark string
	EmojiStopSign  string
	EmojiOne       string
	EmojiTwo       string
	EmojiThree     string
	EmojiFour      string
	EmojiFive      string
	EmojiSix       string
	EmojiSeven     string
	EmojiNeight    string
	EmojiNine      string
	EmojiTen       string
	EmojiEleven    string

	IDChannelSelectRole string
	IDChannelRS11       string
	IDChannelRS10       string
	IDChannelRS9        string
	IDChannelRS8        string
	IDChannelRS7        string
	IDChannelRS6        string
	IDChannelRS5        string
	IDChannelRS4        string

	IDChannelTradePublish string
	IDChannelTradeWait    string
	IDChannelTradeAccept  string

	NameChannelSelectRole string
	NameChannelRS11       string
	NameChannelRS10       string
	NameChannelRS9        string
	NameChannelRS8        string
	NameChannelRS7        string
	NameChannelRS6        string
	NameChannelRS5        string
	NameChannelRS4        string

	IDChannelBS      string
	NameChannelBS    string
	IDChannelGroupBS string

	IDMsgRS string
	IDMsgBS string

	RoleRS11 int64
	RoleRS10 int64
	RoleRS9  int64
	RoleRS8  int64
	RoleRS7  int64
	RoleRS6  int64
	RoleRS5  int64
	RoleRS4  int64

	RoleBS8 int64
	RoleBS7 int64
	RoleBS6 int64
	RoleBS5 int64
	RoleBS4 int64
	RoleBS3 int64
	RoleBS2 int64
	RoleBS1 int64
}

Jump to

Keyboard shortcuts

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