Documentation ¶
Index ¶
- Constants
- func BotErrorLogger(ctx context.Context, stdout, stderr uarchiver.StdPipe, bot *tgbotapi.BotAPI, ...)
- func DownloadAuto(url, outdir string) error
- func DownloadAutoOutput(url, outdir string, bot *tgbotapi.BotAPI, update tgbotapi.Update) error
- func TestReadPermission(dir string) bool
- func TestWritePermission(dir string) bool
Constants ¶
View Source
const ( MessageNoAdmin string = `No admin has been set for this bot! This bot will not function until an admin is set! If you are the administrator of this bot, launch the bot with the following environment variable set: ` + "`AB_ADMIN_ID=%d`" + ` Once you have done so, run /start again for further setup information.` MessageInitialStart string = `` /* 245-byte string literal not displayed */ MessageIsNotAdmin string = `` /* 142-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func BotErrorLogger ¶
func BotErrorLogger(ctx context.Context, stdout, stderr uarchiver.StdPipe, bot *tgbotapi.BotAPI, update tgbotapi.Update)
BotLogger logs stdout and stderr at end of context
func DownloadAuto ¶
func DownloadAutoOutput ¶
func TestReadPermission ¶
TestReadPermission checks whether read permission is available in a directory
func TestWritePermission ¶
TestWritePermission checks whether write permission is available in a directory. This is done by writing to a new file in this directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.