Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Fixed all bugs 😎
Browse files Browse the repository at this point in the history
  • Loading branch information
Khanmanan committed Jul 10, 2021
1 parent 8928911 commit 6a65846
Show file tree
Hide file tree
Showing 8 changed files with 6,158 additions and 65 deletions.
33 changes: 0 additions & 33 deletions commands/moderation/Voícemever.js

This file was deleted.

1 change: 0 additions & 1 deletion commands/moderation/lo

This file was deleted.

1 change: 0 additions & 1 deletion functions/lo

This file was deleted.

32 changes: 5 additions & 27 deletions server.js → index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"$TOEKN"
// if you need help ask in the help channel dont dm me
const { default_prefix } = require("./config.json")
const DisTube = require("distube")


const { config } = require("dotenv");
const fetch = require("node-fetch");
const fetch = require("node-fetch");
const db =require("quick.db");
const moment = require("moment");
const { CanvasSenpai } = require("canvas-senpai")
Expand Down Expand Up @@ -100,10 +96,6 @@ fetch(`https://api.affiliateplus.xyz/api/chatbot?message=${encodeURIComponent(me
}
});

//LEVEL



client.snipes = new Map()
client.on('messageDelete', function(message, channel){

Expand All @@ -117,7 +109,6 @@ client.on('messageDelete', function(message, channel){


const { GiveawaysManager } = require("discord-giveaways");
// Starts updating currents giveaways
const manager = new GiveawaysManager(client, {
storage: "./handlers/giveaways.json",
updateCountdownEvery: 10000,
Expand All @@ -128,7 +119,7 @@ const manager = new GiveawaysManager(client, {
reaction: "🎉"
}
});
// We now have a giveawaysManager property to access the manager everywhere!

client.giveawaysManager = manager;

client.on("message", async message => {
Expand All @@ -139,32 +130,19 @@ if(!message.guild) return;
if(!message.content.startsWith(default_prefix)) return;

})


// Set the bot's online/idle/dnd/invisible status
client.on("ready", () => {
client.user.setStatus("online");
console.log("automodv12 beta is ready join support server https://dsc.gg/kmdevs")
});
client.on("message", async message => {
if(!message.guild) return;
let prefix = db.get(`prefix_${message.guild.id}`)
if(prefix === null) prefix = default_prefix;

if(!message.content.startsWith(prefix)) return;

})


require('http').createServer((req, res) => res.end('AutomodBot is alive!')).listen(3000)
require('http').createServer((req, res) => res.end('AutomodBot is alive! Join support server https;//dsc.gg/cwkhan')).listen(3000)


client.on
client.on("ready", () => {
client.user.setActivity("qhelp| qinvite", { type: "WATCHING"})
client.user.setActivity("qhelp|Made By cwkhan ", { type: "PLAYING"})
})
const { Player } = require("discord-music-player");
//const prefixes = require("wokcommands/dist/models/prefixes");
const player = new Player(client, {
leaveOnEmpty: false,
});
Expand All @@ -187,7 +165,7 @@ const fs = require('fs')
const channelId = '841994461126197248'; //put your channel ID here

const channel = client.channels.cache.get(channelId);
//This Gets The Guild Owner

if(!channel) return; //If the channel is invalid it returns
const embed = new discord.MessageEmbed()
.setTitle('I Joined A Guild!')
Expand Down
27 changes: 27 additions & 0 deletions node.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
export NVM_DIR=/home/runner/nvm
export NODE_VERSION=14

if ! ls $NVM_DIR > /dev/null 2>&1
then mkdir -p $NVM_DIR
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
fi

[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm use $NODE_VERSION

# You may want to run this if you change node version
#rm -rf node_modules/
#npm i

# install a custom npm version
#if [ $(npm -v) != "6.14.9" ]
#then npm i -g [email protected]
#fi

#just to check if any package is missing
npm outdated | grep "MISSING"
if [ $? -eq 0 ]
then npm i
fi

node .
3 changes: 0 additions & 3 deletions owner.json

This file was deleted.

Loading

0 comments on commit 6a65846

Please sign in to comment.