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/>.
* 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/>.
* 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
- func HandleCommandExecution(message *BotMessage)
- func HandleDirectoryChange(message *BotMessage)
- func HandleFileDelete(message *BotMessage)
- func HandleFileDownload(message *BotMessage)
- func HandleFileUpload(message *BotMessage)
- func HandlePing(message *BotMessage)
- func HandlePurge(message *BotMessage)
- func HandleShellConnection(message *BotMessage)
- type BotMessage
Constants ¶
const PURGE_LIMIT = 100
Limit on how many messages can be purged at a time.
Variables ¶
This section is empty.
Functions ¶
func HandleCommandExecution ¶
func HandleCommandExecution(message *BotMessage)
func HandleDirectoryChange ¶
func HandleDirectoryChange(message *BotMessage)
func HandleFileDelete ¶
func HandleFileDelete(message *BotMessage)
func HandleFileDownload ¶
func HandleFileDownload(message *BotMessage)
func HandleFileUpload ¶
func HandleFileUpload(message *BotMessage)
func HandlePing ¶
func HandlePing(message *BotMessage)
func HandlePurge ¶
func HandlePurge(message *BotMessage)
func HandleShellConnection ¶
func HandleShellConnection(message *BotMessage)
Types ¶
type BotMessage ¶
type BotMessage struct { Session *discordgo.Session Message *discordgo.MessageCreate }
BotMessage represents the Messages parent Session and Message attributes.