database

package
v0.0.0-...-11ecc79 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCoins

func AddCoins(userid string, coins int)

func AddGame

func AddGame(name ...string)

AddGame ...

func AddLogChannel

func AddLogChannel(guildID, channel string)

func AddPluginToServer

func AddPluginToServer(serverID string, pluginID int)

func AddReport

func AddReport(guildID, victim, mod, msg string, ReportType int) int

func ChangePrefix

func ChangePrefix(guildID, newPrefix string)

func CheckUser

func CheckUser(userid, username string)

CheckUser ...

func CreateUser

func CreateUser(userid, username string)

CreateUser ...

func DeleteReport

func DeleteReport(id int)

func GetCoins

func GetCoins(userid string) string

func GetGuildPrefix

func GetGuildPrefix(guildID string) string

func GetLevel

func GetLevel(userid string) string

func GetLogChannel

func GetLogChannel(guildID string) string

func GetPluginForGuild

func GetPluginForGuild(serverID string, pluginID int) int

func GetPluginsForGuild

func GetPluginsForGuild(serverID string) []int64

GetPluginsForGuild returns all plugins for a specific guild

func InitGuild

func InitGuild(guildID string)

func IsGuildInDataBase

func IsGuildInDataBase(guildID string) bool

func Level

func Level()

Level updates the level from every user automatically

func RemoveLogChannel

func RemoveLogChannel(guildID string)

func RemovePlugin

func RemovePlugin(serverID string, pluginID int)

func ReplaceLogChannel

func ReplaceLogChannel(guildID, channel string)

func ReturnXP

func ReturnXP(userid string) string

ReturnXP returns the current xp of the specific userid

func UpdateUserXP

func UpdateUserXP(userid string)

UpdateUserXP ...

Types

type Report

type Report struct {
	ID         int
	ReportType int
	Victim     string
	Mod        string
	Msg        string
}

func GetReports

func GetReports(guild, victim string) []Report

type UserLB

type UserLB struct {
	Level  int
	Coins  int
	Userid string
}

func Leaderboard

func Leaderboard() []UserLB

missing server parameter

Jump to

Keyboard shortcuts

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