- Konuyu başlatan
- Yasaklandı
-
- #21
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log(`Giriş yapılan bot ${client.user.tag}!`);
});
client.on('message', msg => {
if (msg.content === 'ping') {
msg.reply(`${client.ping} ms`);
}
});
client.login('token');
reis yine coşturuyosun .d
{
"prefix": "!",
"PREFIX": "!",
"sahip": "",
"sahip2": "",
"adminID": "",
"token": "",
"TOKEN": "",
"allowedUsers" : ["432956416949485568", "432956416949485568"],
"roleToDisco" : ["rainbow", "rainbow"],
"ms" : 650
}
const Discord = require("discord.js");
const client = new Discord.Client()
const ayarlar = require('./ayarlar.json');
const moment = require('moment');
require('moment-duration-format');
let prefix = "!";
client.on("ready", () => {
console.log(`Giriş yapılan bot ${client.user.tag}!`)
});
client.on('message', async msg => {
if (msg.content.toLowerCase() === prefix + 'disko') return;
const renk = [
'DEFAULT',
'AQUA',
'GREEN',
'BLUE',
'PURPLE',
'GOLD',
'ORANGE',
'RED',
'GREY',
'DARKER_GREY',
'NAVY',
'DARK_AQUA',
'DARK_GREEN',
'DARK_BLUE',
'DARK_PURPLE',
'DARK_GOLD',
'DARK_ORANGE',
'DARK_RED',
'DARK_GREY',
'LIGHT_GREY',
'DARK_NAVY'
];
setInterval(function() {
var random = Math.floor(Math.random()*(renk.length-0+1)+0);
msg.guild.roles.find('name', "disco").setColor(renk[random])
}, 750);
});
client.on('message', async msg => {
if (msg.content.toLowerCase() === prefix + 'discodurdur') return;
const renk = [
'DEFAULT',
];
setInterval(function() {
var random = Math.floor(Math.random()*(renk.length-0+1)+0);
msg.guild.roles.find('name', "disco").setColor(renk[random])
}, 0);
});
client.login(ayarlar.token);
"scripts": {
"start": "node index.js"
},
"dependencies": {
"chalk": "^2.4.1",
"color-thief": "^2.2.3",
"discord.js": "^11.3.2",
"express": "^4.16.3",
"gifencoder": "^1.1.0",
"jimp": "^0.2.28",
"moment-duration-format": "^2.2.2",
"moment-timezone": "^0.5.21",
"node-opus": "^0.3.0",
"path": "^0.12.7",
"quick.db": "^6.3.2",
"string-similarity": "^1.2.0",
"util": "^0.11.0",
"canvas": "^1.6.11",
"common-tags": "^1.8.0",
"weather-js": "^2.0.0",
"array-sort": "^1.0.0",
"table": "^4.0.3",
"figlet": "^1.2.0"
},
"engines": {
"node": "9.x"
},
"repository": {
"url": "https://glitch.com/edit/#!/yeyyydisco"
},
"license": "MIT",
"keywords": [
"disco bot",
]
}
{
"install": {
"include": [
"^package\\.json$",
"^\\.env$"
]
},
"restart": {
"exclude": [
"^public/",
"^dist/"
],
"include": [
"\\.js$",
"\\.json"
]
},
"throttle": 900000
}
const http = require('http');
const express = require('express');
const app = express();
app.get("/", (request, response) => {
console.log(Date.now() + " Ping tamamdır.");
response.sendStatus(200);
});
app.listen(process.env.PORT);
setInterval(() => {
http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`);
}, 280000);
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
{
"name": "guidebot",
"version": "2.0.3",
"description": "A boilerplate example bot with command handler and reloadable commands. Updated and Maintained by the Idiot's Guide Community",
"main": "node index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"engines": { "node": "8.4.0" },
"repository": {
"type": "git",
"url": "git+https://github.com/An-Idiots-Guide/guidebot.git"
},
"author": "The Idiot's Guide Community",
"license": "MIT",
"bugs": {
"url": "https://github.com/An-Idiots-Guide/guidebot/issues"
},
"homepage": "https://github.com/An-Idiots-Guide/guidebot#readme",
"dependencies": {
"discord.js": "^11.2.1",
"enmap": "^0.3.2",
"moment": "^2.18.1",
"moment-duration-format": "^1.3.0",
"express": "^4.15.5"
}
}
"token": process.env.TOKEN,
const Discord = require('discord.js');
exports.run = async(client, message, args) => {
if (message.channel.type !== "text") return;
const limit = args[0] ? args[0] : 0;
if(!limit) {
var embed = new Discord.RichEmbed()
.setDescription(`Doğru kullanım: \`g!yavaş-mod [0/100]\``)
.setColor('RANDOM')
.setTimestamp()
message.channel.send({embed})
return
}
if (limit > 100) {
return message.channel.sendEmbed(new Discord.RichEmbed().setDescription("Süre limiti maksimum **100** saniye olabilir.").setColor('RANDOM'));
}
message.channel.sendEmbed(new Discord.RichEmbed().setDescription(`Yazma süre limiti **${limit}** saniye olarak ayarlanmıştır.`).setColor('RANDOM'));
var request = require('request');
request({
url: `https://discordapp.com/api/v7/channels/${message.channel.id}`,
method: "PATCH",
json: {
rate_limit_per_user: limit
},
headers: {
"Authorization": `Bot ${client.token}`
},
})};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: ["slow-mode", "slowmode", "yavas-mod", 'yavasmod', 'yavaşmod'],
permLevel: 3,
};
exports.help = {
name: 'yavaş-mod',
description: 'Sohbete yazma sınır (süre) ekler.',
usage: 'yavaş-mod [1/10]',
};
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?