Categorygithub.com/sylvrs/fuse
modulepackage
0.0.3
Repository: https://github.com/sylvrs/fuse.git
Documentation: pkg.go.dev

# README

fuse

Fuse is a simple, multi-guild Discord bot library built in Go. It is designed to be easy to use and easy to extend through its service functionality.

BEWARE!

This library is still in development and is not ready for production use. It is currently being used in a few projects but isn't fully equipped for public use.

Many systems involved in this library are not fully fleshed out and contain ugly code. This will be fixed in the future but for now, use at your own risk.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Config is the structure that holds the configuration for the manager It holds the token used to authenticate with Discord and the string used to connect to the database.
GuildConfiguration is the structure that holds the configuration for a single guild.
GuildManager is the structure that manages all of the services for a single guild It holds the guild's ID, its configuration, the database connection, and the Discord session.
Manager is the overarching structure that manages all of the guild sub-services Moreover, it holds the database connection and handles all Discord events.
ServiceConfiguration is a simple struct used to store a service's configuration in the database This is not always required but has a configured guild ID field for convenience.
Timestamp represents a Discord timestamp in milliseconds.

# Interfaces

Service is the interface that all services must implement It defines the methods that are called when the service is started or stopped.

# Type aliases

No description provided by the author
StringArray is a wrapper around []string that implements the sql.Scanner and driver.Valuer interfaces.