Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const prefix = "d!";
- const botname = "DevanShellBOT playing: d!help";
- var help = "__DevanShellBOT Commands__\nd!help, d!say {TEXT}, d!joke, d!fact, d!image, d!cannypic, d!uncannypic, d!sadpic, d!angrypic, d!idiotpic";
- const uncannyPics = [
- "https://media.discordapp.net/attachments/1107412342960033832/1114622683460685854/dfa4skp-4ef45bab-b574-4b4d-aac2-12cf5b53b6c6.png?width=634&height=630",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638247361003541/mr-incredible-becoming-uncanny-phase-1.png?width=722&height=630",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638247642026025/latest.png",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638247973355570/latest.png",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638248258584627/images.png",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638248501858444/images.png",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638248824799332/latest.png",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638486935449782/latest.png",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638487237443584/latest.png",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638487526854737/latest.png",
- "https://media.discordapp.net/attachments/1114637956079173722/1114638487849807872/350.png"
- ];
- const cannyPics = [
- "https://i1.sndcdn.com/artworks-JeZQh6Hbil2Er51B-U9rx3A-t500x500.jpg",
- "https://i1.sndcdn.com/avatars-RNXmlKLL2AHsRPaz-8LVOoA-t500x500.jpg",
- "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcR8FcyNrd8y5BmEwp9xYLRjvYxDlheS4DjwgmLZIEvBO2yHIvCv",
- "https://pbs.twimg.com/media/FTHtsuDVUAIjUnO.jpg",
- "https://i.ytimg.com/vi/Zne8JgObXBc/maxresdefault.jpg",
- "https://i.ytimg.com/vi/BFFIS5r7Aj0/maxresdefault.jpg?sqp=-oaymwEmCIAKENAF8quKqQMa8AEB-AH-CYAC0AWKAgwIABABGH8gFSgTMA8=&rs=AOn4CLB0OOFdzym2aFPtk2jqd4beTm8baA",
- "https://i.ytimg.com/vi/TNpQGA762UU/mqdefault.jpg"
- ];
- const sadPics = [
- "https://media.discordapp.net/attachments/1114860678000431254/1114860833021898803/1000.png?width=623&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860833403568198/1000.png?width=630&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860833684594698/1000.png?width=623&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860833999171684/1000.png?width=627&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860834347286559/latest.png?width=630&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860834649284651/1000.png?width=630&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860834993221632/latest.png?width=630&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860835282616320/1000.png?width=630&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860835580420207/1000.png?width=630&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860991004557393/latest.png",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860991709200465/latest.png?width=630&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860991340105819/1000.png?width=630&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114860992007000094/1000.png?width=630&height=630",
- ];
- const angryPics = [
- "https://media.discordapp.net/attachments/1114860678000431254/1114862424693153792/latest.png",
- "https://media.discordapp.net/attachments/1114860678000431254/1114862424978378804/latest.png",
- "https://media.discordapp.net/attachments/1114860678000431254/1114862425305513984/latest.png",
- "https://media.discordapp.net/attachments/1114860678000431254/1114862425720758282/latest.png",
- "https://media.discordapp.net/attachments/1114860678000431254/1114862426039537724/latest.png",
- "https://media.discordapp.net/attachments/1114860678000431254/1114862426316349512/latest.png",
- "https://media.discordapp.net/attachments/1114860678000431254/1114862426601574480/latest.png",
- "https://media.discordapp.net/attachments/1114860678000431254/1114862426928709772/latest.png",
- ];
- const idiotPic = [
- "https://media.discordapp.net/attachments/1114860678000431254/1114864540321062952/latest.png?width=635&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114864540614660166/latest.png?width=635&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114864540899881030/latest.png?width=635&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114864541155725382/latest.png?width=635&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114864541617106985/latest.png?width=635&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114864541961035866/latest.png?width=646&height=630",
- "https://media.discordapp.net/attachments/1114860678000431254/1114864542409822298/latest.png?width=759&height=630",
- // Add more idiot pictures here
- ];
- function getRandomPic(picsArray) {
- const randomIndex = Math.floor(Math.random() * picsArray.length);
- return picsArray[randomIndex];
- }
- function sendMsg(msg) {
- setTimeout(() => {
- socket.emit("talk", { text: msg });
- }, 1100);
- }
- setTimeout(() => {
- socket.emit("command", { list: ["crosscolor", "https://media.discordapp.net/attachments/731430123571642390/1118162913073582151/69420.png"] });
- }, 1000);
- setTimeout(() => {
- socket.emit("command", { list: ["name", "DevanShellBOT playing: d!help"] });
- }, 2100);
- setTimeout(() => {
- sendMsg("DevanShellBOT is online. Type " + prefix + "help to see commands.");
- setInterval(() => {
- sendMsg("DevanShellBOT is online. Type " + prefix + "help to see commands.");
- }, 60000);
- }, 3200);
- socket.on("talk", function (message) {
- if (message.text == prefix + "help") {
- sendMsg(help);
- }
- if (message.text.startsWith(prefix + "say")) {
- sendMsg(message.text.substring(prefix.length + 3));
- }
- if (message.text == prefix + "joke") {
- setTimeout(() => {
- socket.emit("command", { list: ["joke"] });
- }, 1100);
- }
- if (message.text == prefix + "fact") {
- setTimeout(() => {
- socket.emit("command", { list: ["fact"] });
- }, 1100);
- }
- if (message.text.startsWith(prefix + "image")) {
- const imageUrl = message.text.substring(prefix.length + 6);
- setTimeout(() => {
- socket.emit("command", { list: ["image", imageUrl] });
- }, 1100);
- }
- if (message.text == prefix + "cannypic") {
- const randomPic = getRandomPic(cannyPics);
- setTimeout(() => {
- socket.emit("command", { list: ["image", randomPic] });
- }, 1100);
- }
- if (message.text == prefix + "uncannypic") {
- const randomPic = getRandomPic(uncannyPics);
- setTimeout(() => {
- socket.emit("command", { list: ["image", randomPic] });
- }, 1100);
- }
- if (message.text == prefix + "sadpic") {
- const randomPic = getRandomPic(sadPics);
- setTimeout(() => {
- socket.emit("command", { list: ["image", randomPic] });
- }, 1100);
- }
- if (message.text == prefix + "angrypic") {
- const randomPic = getRandomPic(angryPics);
- setTimeout(() => {
- socket.emit("command", { list: ["image", randomPic] });
- }, 1100);
- }
- if (message.text == prefix + "idiotpic") {
- const randomPic = getRandomPic(idiotPic);
- setTimeout(() => {
- socket.emit("command", { list: ["image", randomPic] });
- }, 1100);
- }
- if (message.text.startsWith(prefix + "weather")) {
- const location = message.text.substring(prefix.length + 8);
- getWeather(location);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement