wotoPat

package
v0.0.0-...-f800b22 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-2.0 Imports: 14 Imported by: 0

README

wotoPat plugin

Name: wotoPat \ Version: v1.4.12
Edit: 9 May 2021
By: ALi.w (C) wotoTeam


Usage

  • Commands:
    • /pat
    • >pat
  • Description:
    • If you reply on a message, bot will reply on that one as well.
    • Bot will randomly choose between gif (nekos.life) or photo (its own database), after that it will send you a random result.

Flags

  • --del or --delete:

    • will work if and only if you have replied on a message for patting! Otherwise it will be ignored by bot.
    • Bot needs admin permission to acomplish the work (deleting your message, before sending any pat media), if it doesn't have any permission regarding to delete messages in the group, it won't give you any error or report!
    • This flag also works in private chats! (lol)
  • --private or --pv:

    • Will send the results in your private.
    • if bot does not have the permisson for sending the private message, it will send a message in the group as "please message me first"
    • Case insensitive
  • --hentai:

    • Only bot-admins (sudo users) can use this flag!
    • This flag is not available in groups! It's only for private chats! You can use it in groups with --pv flag, which will
  • --add:

    • Bot's admins only!
    • You have to use it with >pat.
    • You have to reply it on a media (Only photo is supported at the moment), or use the file_id manually (not completed!).
    • It will add the specified media to database.
  • --rm or rem or remove:

      • Bot's admins only!
    • You have to use it with >pat.
    • You have to reply it on a media (Only photo is supported at the moment), or use the file_id manually (not completed!).
    • It will remove the specified media from database.

Support and Contributions

If you think you have found a bug or have a feature request, feel free to use our issue tracker. Before opening a new issue, please search to see if your problem has already been reported or not. Try to be as detailed as possible in your issue reports.


Wait for our new incoming plugins!
Also we will update this plugin soon!

Documentation

Index

Constants

View Source
const (
	PV_FLAG      = "pv"      // won't work if message is replied
	ADD_FLAG     = "add"     // it works only for sudo people
	RM_FLAG      = "rm"      // it works only for sudo people
	REM_FLAG     = "rem"     // it works only for sudo people
	REMOVE_FLAG  = "remove"  // it works only for sudo people
	HENTAI_FLAG  = "hentai"  // it works only for sudo people
	PRIVATE_FLAG = "private" // won't work if message is replied
	DELETE_FLAG  = "delete"  // won't work if message is not replied
	DEL_FLAG     = "del"     // won't work if message is not replied
	PH_FLAG      = "ph"      // won't work if message is not replied
	PHOTO_FLAG   = "photo"   // won't work if message is not replied
	MSG_FLAG     = "msg"     // is there any messages for caption?
	MESSAGE_FLAG = "message" // is there any messages for caption?
)

the flags for the wotoPat plugin. please notice that all flags should begin with prefex `--`, but in the pTools, this prefex will be removed.

View Source
const (
	SEND_HENTAI_SUDO_ONLY = "Owo " +
		tgConst.FIRST_NAME_MENTION +
		", ~-~ Only sudo people can use hentai flag!"
	SEND_HENTAI_PV_ONLY = "#-# " +
		tgConst.FIRST_NAME_MENTION +
		", Sending lewd things in" +
		" groups is prohibited!\nConsider adding --pv flag :D"
	NO_HPAT = "UmU! " +
		tgConst.FIRST_NAME_MENTION +
		", it seems there is no hentai pat in the database! >-<"
	NO_PAT = "UmU! " +
		tgConst.FIRST_NAME_MENTION +
		", it seems there is no pat in the database! >.<"
	PAT_EXISTS = "Nyaaaa! pat =>` " +
		wotoValues.FORMAT_VALUE +
		"` , already exists in the database! -.-"
	PAT_DOESNT_EXIST = "Nyaaaa! pat =>` " +
		wotoValues.FORMAT_VALUE +
		"` , doesn't exist in the database! *-*"
	HENTAI_PAT_ADDED   = "Hentai pat has been added to database-nano~"
	PAT_ADDED          = "Pat has been added to database meow~☆"
	HENTAI_PAT_REMOVED = "Hentai pat has been removed from database-nano~"
	PAT_REMOVED        = "Pat has been removed from database meow~☆"
)

messages used in wotoPat plugin.

View Source
const (
	NONE      patType = 0
	PHOTO_PAT patType = 1
)

the pat types values.

Variables

This section is empty.

Functions

func PatHandler

func PatHandler(message *tg.Message, args pTools.Arg)

PatHandler is entry handler for a pat command.

func PatSHandler

func PatSHandler(message *tg.Message, args pTools.Arg)

PatSHandler is entry handler for a sudo pat command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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