forgot to upload new files for 1.13 mb
This commit is contained in:
parent
11a76b04ca
commit
95ba3fdf57
4 changed files with 149 additions and 0 deletions
20
src/commands/sendblacklist.js
Normal file
20
src/commands/sendblacklist.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
import * as action from "../util/discordAction.js";
|
||||
import fs from "fs";
|
||||
|
||||
export default {
|
||||
name: "sendblacklist",
|
||||
description: "sends blacklist",
|
||||
arguments: "none",
|
||||
execute(message, args) {
|
||||
const filestring = fs.readFileSync(
|
||||
"../pepperbot/data/blacklisted.log",
|
||||
"utf8"
|
||||
);
|
||||
const blacklists = filestring.split("\n");
|
||||
let text = "";
|
||||
for (const file of blacklists) {
|
||||
text += file + "\n";
|
||||
}
|
||||
action.sendMessage(message.channelId, text);
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue