new commands: recent and rejoin, fixed some stuff
This commit is contained in:
parent
89b75481e9
commit
921febf278
6 changed files with 5 additions and 4 deletions
|
@ -5,6 +5,7 @@ export default {
|
|||
name: "recent",
|
||||
description: "sends most recent deleted message",
|
||||
execute(message, args) {
|
||||
if (message.author.bot) return;
|
||||
try {
|
||||
const recent = fs.readFileSync(
|
||||
`./logs/deletedmessages/${message.guild.id}.log`
|
||||
|
|
|
@ -3,7 +3,7 @@ import * as action from "../util/discordAction.js";
|
|||
|
||||
export default {
|
||||
name: "rejoin",
|
||||
description: "Rejoin the voice channel",
|
||||
description: "rejoin the voice channel",
|
||||
execute(message, args) {
|
||||
const connection = getVoiceConnection(message.guild.id);
|
||||
if (connection) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue