Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(*): Removed unused imports, parameters, etc. #99

Merged
merged 46 commits into from
Oct 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b7601f0
Merge pull request #62 from DeltaCoderr/develop
DeltaCoderr May 27, 2021
e4befcb
Merge pull request #63 from DeltaCoderr/develop
DeltaCoderr May 28, 2021
ba6033d
Bump ws from 7.4.4 to 7.4.6
dependabot[bot] Jun 12, 2021
cd965db
Merge pull request #65 from DeltaCoderr/dependabot/npm_and_yarn/ws-7.4.6
DeltaCoderr Jun 12, 2021
da164d8
Merge pull request #68 from DeltaCoderr/develop
DeltaCoderr Jun 15, 2021
e7dc70d
:package: Update the version
DeltaCoderr Jul 4, 2021
0fbbe28
:package: Version fix
DeltaCoderr Jul 13, 2021
13df847
Fix : Conflict
DeltaCoderr Jul 13, 2021
9b1b692
Fix : Conflict
DeltaCoderr Jul 13, 2021
d8c1cd5
Create package.json
DeltaCoderr Jul 13, 2021
c7db492
init
DeltaCoderr Jul 13, 2021
8483b4f
Merge pull request #72 from DeltaCoderr/develop
DeltaCoderr Jul 13, 2021
ee8c6c9
:sparkle: Small fix
DeltaCoderr Jul 27, 2021
4e1b5c5
Bump tar from 6.1.0 to 6.1.6
dependabot[bot] Aug 9, 2021
fa5e772
Merge pull request #77 from DeltaCoderr/dependabot/npm_and_yarn/tar-6…
DeltaCoderr Aug 10, 2021
025f2c0
Merge pull request #79 from DeltaCoderr/develop
DeltaCoderr Aug 22, 2021
6ca0afc
Merge pull request #80 from DeltaCoderr/develop
DeltaCoderr Aug 25, 2021
06f8042
Merge pull request #84 from DeltaCoderr/develop
DeltaCoderr Sep 18, 2021
b44a272
:arrow_up: Bump axios from 0.21.1 to 0.21.2
dependabot[bot] Sep 18, 2021
91ee3fe
Merge pull request #85 from DeltaCoderr/dependabot/npm_and_yarn/axios…
DeltaCoderr Sep 18, 2021
8d05ca4
:arrow_up: Bump tar from 6.1.6 to 6.1.11
dependabot[bot] Sep 18, 2021
16de67d
Merge pull request #86 from DeltaCoderr/dependabot/npm_and_yarn/tar-6…
DeltaCoderr Sep 18, 2021
62616a1
:arrow_up: Bump nth-check from 2.0.0 to 2.0.1
dependabot[bot] Sep 29, 2021
e4ef8fd
Merge pull request #87 from DeltaCoderr/dependabot/npm_and_yarn/nth-c…
DeltaCoderr Sep 29, 2021
364559a
Merge pull request #88 from DeltaCoderr/develop
DeltaCoderr Oct 1, 2021
9ab90b0
Merge pull request #90 from DeltaCoderr/develop
DeltaCoderr Oct 4, 2021
fd5980d
Update Installation.md
DeltaCoderr Oct 10, 2021
4595804
added CODE_OF_CONDUCT.md file to the repo
0xJaskeerat Oct 30, 2021
acfe9f1
Merge pull request #95 from Jassi10000/develop
DeltaCoderr Oct 30, 2021
cd9461a
added a github action for contributors in the repo
0xJaskeerat Oct 30, 2021
ecb783b
Merge pull request #97 from Jassi10000/main
DeltaCoderr Oct 30, 2021
6055ec4
chore(*): Removed unused imports, parameters, etc.
DiscordAnaxes Oct 31, 2021
426f0d3
fix(deps): bump canvacord from 5.2.1 to 5.2.3
dependabot[bot] Oct 31, 2021
663a33d
fix(deps): bump @discordjs/opus from 0.5.3 to 0.6.0
dependabot[bot] Oct 31, 2021
9ef5283
Merge pull request #10 from DiscordAnaxes/dependabot/npm_and_yarn/dis…
DiscordAnaxes Oct 31, 2021
8028c8f
Merge pull request #9 from DiscordAnaxes/dependabot/npm_and_yarn/canv…
DiscordAnaxes Oct 31, 2021
9d59a87
fix(deps): bump discord-player from 4.1.0 to 5.1.0
dependabot[bot] Oct 31, 2021
bc11e5f
Merge pull request #8 from DiscordAnaxes/dependabot/npm_and_yarn/disc…
DiscordAnaxes Oct 31, 2021
66ad80c
fix(deps): bump quickmongo from 3.0.2 to 4.0.0
dependabot[bot] Oct 31, 2021
58bc507
fix(deps): bump node-fetch from 2.6.1 to 3.0.0
dependabot[bot] Oct 31, 2021
41ec087
Merge pull request #7 from DiscordAnaxes/dependabot/npm_and_yarn/node…
DiscordAnaxes Oct 31, 2021
8432675
Merge pull request #6 from DiscordAnaxes/dependabot/npm_and_yarn/quic…
DiscordAnaxes Oct 31, 2021
3eed1f5
fix(deps): bump genius-lyrics from 4.2.9 to 4.3.4
dependabot[bot] Oct 31, 2021
d4e105b
Merge pull request #4 from DiscordAnaxes/dependabot/npm_and_yarn/geni…
DiscordAnaxes Oct 31, 2021
7744521
fix(*): Added back `client` + removed dependabot.yml.
DiscordAnaxes Oct 31, 2021
2ca3e1f
Updated config.json.
DiscordAnaxes Oct 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/welcome-first-time-contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Welcome first time contributors

on:
pull_request_target:
types:
- opened
issues:
types:
- opened

jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hello there ${{ github.actor }} 👋

Welcome to KarmaBot!! 💖🥳

Thank you and congratulations 🎉 for opening your very first issue in this project. KarmaBot fosters an open and welcoming environment for all our contributors.🌸 Please adhere to our [Code Of Conduct](https://github.com/DeltaCoderr/KarmaBot/blob/main/CODE_OF_CONDUCT.md).

Incase you want to claim this issue, please comment down below! We will try to get back to you as soon as we can.👀

Feel free to visit [karma.deltaa.me](https://karma.deltaa.me/). 👩‍💻 If you have any interesting ideas , simply open an issue and we would love to hear you and engage in discussions.💖

pr-message: |
Hello there ${{ github.actor }} 👋

Thank you and congrats 🎉 for opening your first PR on this project.✨

We will review it soon!

KarmaBot fosters an open and welcoming environment for all our contributors.🌸 Please adhere to our [Code Of Conduct](https://github.com/DeltaCoderr/KarmaBot/blob/main/CODE_OF_CONDUCT.md).

1 change: 0 additions & 1 deletion Base/Functions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const request = require('node-fetch');
const { createCanvas, loadImage } = require('canvas');
const { GuildMember, User } = require('discord.js')
const { Bot } = require('../Structures/Client')

async function fetchRateLimit() {
try {
Expand Down
2 changes: 0 additions & 2 deletions Base/Permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ async function checkPermission(of, message, permissions) {
/**
* @type { Bot }
*/
const client = message.client;

switch (of.toLowerCase()) {
case "client":
//embed
Expand Down
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team by filing an issue on the Github repository.
All complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
2 changes: 1 addition & 1 deletion Commands/Anime/anime.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {

Anime = await Scraper.getInfoFromName(Replaced);

if (!Anime.genres[0] || Anime.genres[0] === null) Anime.genres[0] = "None";
if (!Anime.genres[0]) Anime.genres[0] = "None";

Embed = new MessageEmbed()
.setColor(config.embedcolor)
Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/baka.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
description: 'Get a reaction for baka.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

const { url } = await baka().catch(() => { });

Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/fact.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Gets random Anime Facts.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

let url = "https://airi.kyoyo.me/api/fact";

Expand Down
1 change: 0 additions & 1 deletion Commands/Anime/hug.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fetch = require('node-fetch');
const { MessageEmbed } = require('discord.js');
const { resolveMember } = require('../../Base/Functions')

module.exports = {
help: {
Expand Down
4 changes: 2 additions & 2 deletions Commands/Anime/karma.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('node-fetch');
const { MessageEmbed } = require('discord.js');
const fetch = require('node-fetch');

module.exports = {
Expand All @@ -8,7 +8,7 @@ module.exports = {
description: 'Drops random Karma Pictures.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

let res = await fetch('https://api.deltaa.me/karma')
let data = await res.json()
Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/kiss.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
description: 'Kiss :flushed: .',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

const embed = new MessageEmbed();

Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/neko.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Drops random Neko Pictures.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

fetch('https://shiro.gg/api/images/neko')
.then(res => res.json())
Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/poke.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
description: 'Poke someone huehue',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

const { url } = await poke().catch(() => { });

Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/slap.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
description: 'Slap someone go go!.',
category: __dirname.split("Commands\\")[1]
},
run: async(client, message, args) => {
run: async(client, message) => {
const { url } = await slap().catch(() => {});

if (!url) return message.channel.send(`Could not connect to nekos.life`);
Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/smug.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
description: 'Yes, Smug.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

const { url } = await smug().catch(() => { });

Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/tickle.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
description: 'TICKLE THEM RN.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {
const { url } = await tickle().catch(() => { });

if (!url) return message.channel.send(`Could not connect to nekos.life`);
Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/waifu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Drops random waifu pictures.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {
await fetch("https://nekos.life/api/v2/img/waifu")
.then(res => res.json())
.then(body => {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Anime/wink.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Winky Wink.',
category: __dirname.split("Commands\\")[1]
},
run: async(client, message, args) => {
run: async(client, message) => {
fetch('https://some-random-api.ml/animu/wink')
.then(res => res.json())
.then(response => {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Buttons/snake.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
description: 'Play the snake game in Discord!',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

await Snake({
message: message,
Expand Down
2 changes: 1 addition & 1 deletion Commands/Buttons/wyr.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Would you Rather? Hmm..',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

await WouldYouRather({
message: message,
Expand Down
5 changes: 2 additions & 3 deletions Commands/Chatbot/disablechatbotchannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
description: 'Disables the channel for the chatbot',
category: __dirname.split("Commands\\")[1]
},
run: async(client, message, args) => {
run: async(client, message) => {

/**** Checking Permissions ****/
let clientPermission = await checkPermission('client', message, [
Expand All @@ -36,12 +36,11 @@ module.exports = {
}});
} else {

let channel = message.guild.channels.cache.get(a);
db.delete(`chatbot_${message.guild.id}`);

message.channel.send({embed: {
color: config.embed,
title: `${emotes.verified} Chatbot Channel has been succesfully disabled!`
title: `${emotes.verified} Chatbot Channel has been successfully disabled!`
}});
} return;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Fun/reddit.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = {
return;
}
})
} else if (data.NSFW !== true || data.spoiler !== true) {
} else if (data.NSFW || data.spoiler) {
return message.channel.send(reddit)
}
})
Expand Down
2 changes: 1 addition & 1 deletion Commands/Info/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
description: 'Shows the stats of the Bot',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

const mapping = {
" ": " ",
Expand Down
2 changes: 1 addition & 1 deletion Commands/Info/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
description: 'Link for Bot\'s Invite',
category: __dirname.split("Commands\\")[1],
},
run: async (client, message, args) => {
run: async (client, message) => {

const embed = new MessageEmbed()
.setThumbnail(client.user.avatarURL())
Expand Down
2 changes: 1 addition & 1 deletion Commands/Info/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
description: 'Link to the Github Repository',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

const embed = new MessageEmbed()
.setThumbnail(client.user.avatarURL())
Expand Down
3 changes: 1 addition & 2 deletions Commands/Info/uptime.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ module.exports = {
description: 'Shows the Bot\'s uptime',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

let uptime = moment.duration(client.uptime).format("D [ days] h[ hours] m[ minutes] s[ seconds]")

const duration = moment.duration(client.uptime)
let bicon = client.user.displayAvatarURL()
const botembed = new MessageEmbed()
.setTitle("Karma Bot Project")
Expand Down
2 changes: 1 addition & 1 deletion Commands/Music/clear-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Clears the whole Queue.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {

const embed = new Discord.MessageEmbed()
.setTitle('Something went wrong!')
Expand Down
2 changes: 1 addition & 1 deletion Commands/Music/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Shows all the filters.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {
const embednoinvoice = new Discord.MessageEmbed()
.setTitle('Error!')
.setDescription(`${emotes.error} - You're not in a voice channel !`)
Expand Down
2 changes: 1 addition & 1 deletion Commands/Music/leave.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Leaves the VC.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {


const embednoinvoice = new Discord.MessageEmbed()
Expand Down
2 changes: 1 addition & 1 deletion Commands/Music/np.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Now Playing.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {


const embed1 = new Discord.MessageEmbed()
Expand Down
2 changes: 1 addition & 1 deletion Commands/Music/pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Pauses the song.',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {
const embed1 = new Discord.MessageEmbed()
.setTitle('Something went wrong!')
.setDescription(`${emotes.error} - You're not in a voice channel !`)
Expand Down
2 changes: 1 addition & 1 deletion Commands/Music/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
description: 'Shows the Queue\'d Music',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
run: async (client, message) => {
const embed1 = new Discord.MessageEmbed()
.setTitle('Something went wrong!')
.setDescription(`${emotes.error} - You're not in a voice channel !`)
Expand Down
Loading