Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCmd(b *Bot) sevcord.SlashCommandObject
- func CreateCmd(b *Bot) sevcord.SlashCommandObject
- func DescriptionCmd(b *Bot) sevcord.SlashCommandObject
- func EditCmd(b *Bot) sevcord.SlashCommandObject
- func Error(ctx sevcord.Ctx, err error) bool
- func ErrorMessage(ctx sevcord.Ctx, msg string)
- func ImageCmd(b *Bot) sevcord.SlashCommandObject
- func InfoCmd(b *Bot) sevcord.SlashCommandObject
- func LbCmd(b *Bot) sevcord.SlashCommandObject
- func NewExtensionCtx(id string, dat *db.Data, ctx sevcord.Ctx) *extensionCtx
- func RunCmd(b *Bot) sevcord.SlashCommandObject
- func SourceCmd(b *Bot) sevcord.SlashCommandObject
- type Bot
- func (b *Bot) Autocomplete(ctx sevcord.Ctx, val any) []sevcord.Choice
- func (b *Bot) BuildCode(filename string, src string, ctx sevcord.Ctx) (*ir.IR, error)
- func (b *Bot) BuildCodeCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) BuildFileCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) BuildTagCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) Close()
- func (b *Bot) CompileCode(filename, src string, ctx sevcord.Ctx) (string, error)
- func (b *Bot) CreateCmd(src string, id, name string, ctx sevcord.Ctx)
- func (b *Bot) CreateCodeCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) CreateFileCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) DescriptionCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) EditCmd(ctx sevcord.Ctx, src string, id string)
- func (b *Bot) EditCodeCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) EditFileCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) ImageCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) InfoCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) LbUsedCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) RunCode(filename string, src string, ctx sevcord.Ctx, extensionCtx *extensionCtx) error
- func (b *Bot) RunCodeCmd(ctx sevcord.Ctx, args []any)
- func (b *Bot) RunFileCmd(ctx sevcord.Ctx, vals []any)
- func (b *Bot) RunTagCmd(ctx sevcord.Ctx, vals []any)
- func (b *Bot) SourceCmd(ctx sevcord.Ctx, args []any)
Constants ¶
View Source
const ItemsPerPage = 10
View Source
const MaxTime = time.Second * 150
Variables ¶
View Source
var Exts = []*ir.Extension{ { Name: "DB", Params: []types.Type{types.IDENT, types.STRING, types.VARIADIC}, RetType: types.STRING, }, { Name: "USERID", Params: []types.Type{}, RetType: types.STRING, }, { Name: "INPUT", Params: []types.Type{types.STRING}, RetType: types.STRING, }, { Name: "MULTIPLAYER", Params: []types.Type{types.BOOL}, RetType: types.NULL, }, { Name: "BUTTON", Params: []types.Type{types.STRING, types.STRING}, RetType: types.NewMapType(types.STRING, types.STRING), }, { Name: "BUTTONS", Params: []types.Type{types.NewArrayType(types.NewArrayType(types.NewMapType(types.STRING, types.STRING)))}, RetType: types.STRING, }, { Name: "DISABLE", Params: []types.Type{types.NewMapType(types.STRING, types.STRING)}, RetType: types.NewMapType(types.STRING, types.STRING), }, { Name: "ENABLE", Params: []types.Type{types.NewMapType(types.STRING, types.STRING)}, RetType: types.NewMapType(types.STRING, types.STRING), }, { Name: "COLOR", Params: []types.Type{types.NewMapType(types.STRING, types.STRING), types.INT}, RetType: types.NewMapType(types.STRING, types.STRING), }, }
Functions ¶
func BuildCmd ¶
func BuildCmd(b *Bot) sevcord.SlashCommandObject
func CreateCmd ¶
func CreateCmd(b *Bot) sevcord.SlashCommandObject
func DescriptionCmd ¶
func DescriptionCmd(b *Bot) sevcord.SlashCommandObject
func EditCmd ¶
func EditCmd(b *Bot) sevcord.SlashCommandObject
func ErrorMessage ¶
func ImageCmd ¶
func ImageCmd(b *Bot) sevcord.SlashCommandObject
func InfoCmd ¶
func InfoCmd(b *Bot) sevcord.SlashCommandObject
func LbCmd ¶
func LbCmd(b *Bot) sevcord.SlashCommandObject
func RunCmd ¶
func RunCmd(b *Bot) sevcord.SlashCommandObject
func SourceCmd ¶
func SourceCmd(b *Bot) sevcord.SlashCommandObject
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.