SadFavBot

command module
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 23 Imported by: 0

README

@SadFavBot — SadBot's Favorites Bot

CI Build Wiki Docs

Your lovely pocket for storing stickers, pictures, GIFs, voices, etc. It lets you save your favorite memes and keep them for further use via inline mode.

Save your favs:

image

And use them later!

image

Commands

  • /help — prints help message
  • /save — starts a wizard that helps you store a meme associated with some textual alias
  • /link — starts a wizard that helps you link another phrase to the already existing alias
  • /rmlink — starts a wizard that helps you remove the link created by the previous command
  • /list — prints all saved aliases or packages
  • /ref — prints the list of all aliases associated with an object
  • /delete — starts a wizard that helps you delete some memes you no longer needed
  • /visibility — exclude an alias from all listings, or reveal it back
  • /package — starts a wizard that helps you create or delete your own package of aliases, which may be installed by other users
  • /install — command to install a package of aliases created by someone else
  • /language — switch the bot's language
  • /mode — enable or disable substring search
  • /cancel — aborts the current wizard

Inline mode

Just write one of your saved aliases and get the stored memes!

How packages work?

The package is a set of aliases associated with the owner of the package. The package contains only aliases, not objects associated with them! Therefore, the list of installing objects is formed only at installation time. The package is a reference to specific aliases of the user. However, the installation is just a bunch of /save actions (a bunch of inserts to the database actually), so the installed aliases are completely independent and separated between users.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
dto
Package dto consists of data transfer objects or entities.
Package dto consists of data transfer objects or entities.
repo
Package repo is an abstraction layer over the database connection.
Package repo is an abstraction layer over the database connection.

Jump to

Keyboard shortcuts

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