const {TOKEN, LOG_LOCATION, GUILD_ID, CHANNEL_NAME} = require('./configOnline.json');
var client = new Discord.Client();
client.on('ready', () => {
const guild = client.guilds.cache.get(GUILD_ID);
const channel = guild.channels.cache.find(channel => channel.id === 746324211768885318);
channel.setName("TEST");
});
client.login(TOKEN);
const {TOKEN, LOG_LOCATION, GUILD_ID, CHANNEL_NAME} = require('./configOnline.json');
var client = new Discord.Client();
client.on('ready', () => {
const guild = client.guilds.get(GUILD_ID);
const channel = guild.channels.find(channel => CHANNEL_NAME === channel.name);
channel.setName(CHANNEL_NAME + " Мои данные");
});
client.login(TOKEN);
const guild = client.guilds.get(GUILD_ID);
const channel = guild.channels.find(channel => CHANNEL_NAME === channel.name);
channel.setName("РАБОТАЕТ");