Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogPath = "./logs/system/log.log" DBLogPath = "./logs/db/log.log" DBPath = "./db/users.db" TorrentCount = 15 RecentCount = 15 )
Internal config
View Source
const ( ApiURL = "https://apibay.org/q.php" RecentTorrentURL = "https://apibay.org/precompiled/data_top100_${CODE}.json" TorrentURL = "https://itorrents.org/torrent/${INFO_HASH}.torrent" )
View Source
const ( START Command = "start" USERS = "users" RECENT = "recent" TOPVIDEOS = "topvideos" TOPAUDIO = "topaudio" TOPGAMES = "topgames" TOPPORN = "topporn" TOPAPPLICATIONS = "topapplications" OTHERS = "others" )
commands
View Source
const ( WELCOME_MSG = "Welcome to TorrentGenie \xF0\x9F\x98\x81 - Get torrent files | magnet links \n\n Start by typing a name" INVALID_REPLY = "Invalid reply, please try again" SOMETHING_WENT_WRONG = "Something went wrong, please try again" NO_RESULTS = "No torrents found" INVALID_COMMAND = "Invalid Command" ADMIN_COMMAND = "Admin use only" SERVER_DOWN = "Torrent server is down, please try again later" )
messages
View Source
const (
MagnetLink string = "magnet:?xt=urn:btih:${INFO_HASH}&dn=${NAME}${TRACKERS}"
)
View Source
const (
PingTimeout = 10 * 60
)
ping timeout
View Source
const (
RecommendMsg string = `` /* 262-byte string literal not displayed */
)
Variables ¶
View Source
var (
IsRecommendationOn bool = true
)
Recommendation
Functions ¶
This section is empty.
Types ¶
type MessageType ¶
type MessageType string
const ( Magnet MessageType = "magnet" Torrent = "torrent" )
Click to show internal directories.
Click to hide internal directories.