Anonymous Anonymous - 17 days ago
120 0

main

Javascript

app.js

const Discord = require('discord.js');
const client = new Discord.Client();
const settings = require('./settings.json');
const ytdl = require('ytdl-core');
const streamOptions = {seek:0, volume:1};

client.on('ready',() => {
	console.log('zdr kurwi');
});

client.on('guildMemberAdd', member => {
	let guild = member.guild;
	guild.defaultChannel.sendMessage('Dobre doshul, ' + member.user);
});

client.on('guildMemberRemove', member => {
	let guild = member.guild;
	guild.defaultChannel.sendMessage('Doswiduli!');
});

client.on('message', message => {
	let args;
	var argresult;

	if(!message.content.startsWith(settings.prefix)) {
		return;
	}

	if(message.author.bot) {
		return;
	}

	if(message.content.startsWith(settings.prefix + 'samo')) {
		message.channel.sendMessage('levski');
		return;
	}

	if(message.content.startsWith(settings.prefix + 'alo?')) {
		message.channel.sendMessage('M A I K A T A S I E E B A L O');
		return;
	}

	if(message.content.startsWith(settings.prefix + 'setgame')) {
		args = message.content.split(' ').slice(1);
		argresult = args.join(' ');
		client.user.setGame(argresult);
		return;
	}

	

});

client.login(settings.token);