Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //dependencies
- const Discord = require('discord.js');
- const bot = new Discord.Client();
- const token = 'token';
- const PREFIX = '!';
- var status = "";
- //console message
- bot.on('ready', () =>
- {
- console.log('This bot is online!');
- }),
- //bot message
- bot.on('message', message =>{
- let args = message.content.substring(PREFIX.length).split(' ')
- switch(args[0]){
- case '246':
- message.channel.send({embed: {
- color: '#008000',
- title: "*246 CSGO Server*",
- description: "Service by Simo_246",
- thumbnail: {
- url: 'https://i.imgur.com/ZcHqQvd.png',
- },
- fields: [{
- name: "*Let's Play!*",
- value: "steam://connect/ip:gameport/password",
- },
- //gotv if enabled
- {
- name: "*Watch GOTV!*",
- value: "steam://connect/ip:gotvport/password",
- },
- ],
- timestamp: new Date(),
- footer: {
- icon_url: "https://i.imgur.com/ZcHqQvd.png",
- text: "PGL Industries - Copyright 2001-2246"
- }
- }
- })
- }
- }
- )
- //login (always at the end)
- bot.login(token);
Add Comment
Please, Sign In to add comment