internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 DownloadAuto(url, outdir string) error

func DownloadAutoOutput

func DownloadAutoOutput(url, outdir string, bot *tgbotapi.BotAPI, update tgbotapi.Update) error

func TestReadPermission

func TestReadPermission(dir string) bool

TestReadPermission checks whether read permission is available in a directory

func TestWritePermission

func TestWritePermission(dir string) bool

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.

Jump to

Keyboard shortcuts

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