This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require('discord.js'); // This code is for discord.js v12 because idk how to use v14 | |
const client = new Discord.Client(); | |
require('dotenv').config(); | |
client.on('ready', () => { | |
console.log("Logged in as: " + client.user.tag); | |
const serverId = ''; // Server ID of the server the channel is in | |
const channelId = ''; // Channel ID of the channel you want the bot to send messages to | |
const message = ''; // Message you want the bot to send |