wotoSudo

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: 15 Imported by: 0

README

🕹 wotoSudo plugin 🕹

Name: wotoSudo
Version: v1.2.12
Edit: 9 May 2021
By: ALi.w (C) wotoTeam


Usage

  • Commands:
    • >sudo --add
    • >sudo --rm or >sudo --rem or >sudo --remove
  • Description:
    • Ihese commands will work only for main sudo of the bot.
    • If you want to ass another sudo, you have to use >sudo --add (ID) in which ID should be the user ID of the user (not username!)
    • You can also use these commands with replying them to the target user. If the user is in db already, you will get an error message from the bot.

Flags

  • --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" // TODO!
    • Case insensitive

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 (
	ADD_FLAG     = "add"
	RM_FLAG      = "rm"
	REM_FLAG     = "rem"
	REMOVE_FLAG  = "remove"
	PV_FLAG      = "pv"
	PRIVATE_FLAG = "private"
	SYS_FLAG     = "sys"
	LS_FLAG      = "ls"
	LIST_FLAG    = "list"
)

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

View Source
const (
	ADDED_TO_SUDO_LIST_M = "owo >>.<<\nUser " +
		tgConst.FIRST_NAME_MENTION +
		" has been added to my sudo list! -.-"
	ADDED_TO_SUDO_LIST_MPV = "owo damn you master >>.<<\nAnother trash " +
		tgConst.FIRST_NAME_MENTION +
		" has been added to my sudo list! -.-"

	ALREADY_SUDO_M = "But User " +
		tgConst.FIRST_NAME_MENTION +
		" is already in my sudo list! >.<"
	ALREADY_SUDO_MPV = "Idiot, User " +
		tgConst.FIRST_NAME_MENTION +
		" is already in my fucking sudo list! >.<"

	REMOVED_SUDO_M = "AwA ~.~\nUser " +
		tgConst.FIRST_NAME_MENTION +
		" is no longer in my sudo list! ^-^"
	REMOVED_SUDO_MPV = "AwA ~.~\n this trash " +
		tgConst.FIRST_NAME_MENTION +
		" is no longer in my bullshit sudo list! ^-^"

	NOT_IN_SUDO_LIST_M = "But User " +
		tgConst.FIRST_NAME_MENTION +
		" is not in my sodu list! *.*"
	NOT_IN_SUDO_LIST_MPV = "Open your goddamn eyes and see that " +
		tgConst.FIRST_NAME_MENTION +
		" is not in my sodu list! *.*"

	INVALID_ID_SUDO_M = "Id " + wotoValues.FORMAT_VALUE +
		" is not in correct format!"
	INVALID_ID_SUDO_MPV = "You dumb! Id " + wotoValues.FORMAT_VALUE +
		" is not in correct format! (-.-)"
)

the messages for wotoSudo plugin.

View Source
const (
	ID_CANNOT_BE_ZERO = "In wotoSudo/handler.go: " +
		"ID cannot be zero!"
	ADD_SUDO_ERR = "Something happened in the " +
		"settings.AddSudo(), and result wasn't SUCCESS!"
	REM_SUDO_ERR = "Something happened in the " +
		"settings.RemSudo(), and result wasn't SUCCESS!"
)

the log messages for wotoSudo plugin.

View Source
const (
	AnotInList     sudoErr = 1
	AinvalidId     sudoErr = 2
	AalreadyInList sudoErr = 3
)

Variables

This section is empty.

Functions

func Sudo_handler

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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