Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = &bot.Module{ Name: "colorsync", Description: "Allow syncing channel permissions with Guild Wars 2 WvW sides", GuildOnly: true, Commands: map[string]*bot.Command{ "set": { Name: "set", Description: "Set a channel to a color", Usage: "<Channel> <Color>", Example: "#red red", Execute: set, Permissions: []string{permissionManage}, }, "unset": { Name: "unset", Description: "Unset a channel as a color channel, making it a normal channel again", Usage: "<Channel>", Example: "#red", Execute: unset, Permissions: []string{permissionManage}, }, "list": { Name: "list", Description: "List all channels linked in this server.", Usage: "", Example: "", Execute: list, Permissions: []string{permissionManage}, }, "sync": { Name: "sync", Description: "Resynchronize all linked channels now.", Usage: "", Example: "", Execute: sync, Permissions: []string{permissionManage}, }, }, Tasks: []*bot.Task{ { Name: "refreshcolors", AtTime: "19:00", AtWeekday: time.Friday, Execute: refreshTask, }, }, Store: &store.Store{ Tables: []*store.Table{ { Name: "colorsync", Columns: []*store.Column{ { Name: "id", Type: "INT", Flags: []store.SQLFlag{store.SQLFlagAutoIncrement, store.SQLFlagNotNull, store.SQLFlagPrimaryKey, store.SQLFlagUnsigned}, }, { Name: "channel", Type: "VARCHAR", Len: 32, Flags: []store.SQLFlag{store.SQLFlagNotNull}, }, { Name: "guild", Type: "VARCHAR", Len: 32, Flags: []store.SQLFlag{store.SQLFlagNotNull}, }, { Name: "color", Type: "VARCHAR", Len: 16, Flags: []store.SQLFlag{store.SQLFlagNotNull}, }, }, }, }, }, Permissions: []string{permissionManage}, }
Module colorsync allows to set channels to be accessed only by specific gw2 matchup sides
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.