greet

package
v0.0.0-...-e6a6799 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelCmd

type ChannelCmd struct{}

A ChannelCmd holds methods for this command

func (*ChannelCmd) GetNames

func (c *ChannelCmd) GetNames() []string

GetNames returns the command aliases for this command

func (*ChannelCmd) GetRequiredPermission

func (c *ChannelCmd) GetRequiredPermission() int

GetRequiredPermission returns permission bits for discord ACL permission system. This command requires discordgo.PermissionManageServer

func (*ChannelCmd) Invoke

func (c *ChannelCmd) Invoke(ci *shodan.CommandInvocation) error

Invoke runs the command. This command allows configuring the greet module.

Actions include:

status: returns a summary of the configuration

set: sets the current channel as the greeting channel

clear: clears the current configuration

msg: set the message used to greet new users

type Module

type Module struct{}

Module holds data for this module and implements the shodan.Module interface

func (*Module) Attach

func (m *Module) Attach(session shodan.Shodan) error

Attach attaches this module to a Shodan session

func (*Module) GetIdentifier

func (m *Module) GetIdentifier() string

GetIdentifier returns the identifier for this module

Jump to

Keyboard shortcuts

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