Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [14]
node_version: [15]
os: [ubuntu-latest]
steps:
- name: Checkout Project
Expand All @@ -28,7 +28,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles(matrix.os == 'windows-latest' && '**\yarn.lock' || '**/yarn.lock') }}
- name: Install Dependencies
run: |
yarn add https://{{secrets.TOKEN}}:x-oauth-basic@github.com/PenguBot/music.git#build
yarn add git+https://${{secrets.MUSIC}}@github.com/PenguBot/music.git#build
yarn
- name: Test
run: yarn test
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
<a href="https://status.pengubot.com"><img src="https://img.shields.io/uptimerobot/status/m781763015-e93639facd06b3a9001144c3.svg?style=for-the-badge"></a>
<a href="https://github.com/AdityaTD/PenguBot/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg?style=for-the-badge"></a>
</p>
<p align="center">PenguBot is mutli-purpose Discord Bot with over 43,000 guilds and 2,000,000 users.<br>
<p align="center">PenguBot is mutli-purpose Discord Bot with over 45,500 guilds and 4,000,000 users.<br>
Join <a href="https://discord.gg/u8WYw5r">Discord</a> for Support and Development Discussions</p>
</div>

## Hosting
Get Instant Free €20 Credit on [Hetzner](https://bit.ly/HetznerCloudServers) with No Credit Card! Affordable and High Quality Hosting Services.

[![Hetzner](https://i.imgur.com/YvwLdyZ.png)](https://bit.ly/HetznerCloudServers)

## Contributors
[Vlad](https://github.com/KingDGrizzle) - Help with Migration Script for Database

Expand Down Expand Up @@ -42,13 +47,7 @@ Join <a href="https://discord.gg/u8WYw5r">Discord</a> for Support and Developmen

[Jacz](https://github.com/MrJacz)

## Hosting
High Quality Affordable Hosting [GalaxyGate](https://bit.ly/GalaxyGate). Visit the link by clicking the image below to know more!

[![GalaxyGate](https://i.imgur.com/tTbWta8.png)](https://bit.ly/GalaxyGate)

## Vote on Bot Lists to Support
[![Discord Bots](https://discordbots.org/api/widget/303181184718995457.svg)](https://discordbots.org/bot/303181184718995457/vote)
[![Bots for Discord](https://botsfordiscord.com/api/bot/303181184718995457/widget)](https://botsfordiscord.com/bots/303181184718995457)
[![Discord Bot List](https://discordbotlist.com/bots/303181184718995457/widget)](https://discordbotlist.com/bots/303181184718995457/upvote)
[![Discord Boats](https://discord.boats/api/widget/303181184718995457)](https://discord.boats/bot/303181184718995457/vote)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://github.com/AdityaTD/PenguBot#readme",
"dependencies": {
"@k3rn31p4nic/google-translate-api": "^1.1.1",
"@iamtraction/google-translate": "iamtraction/google-translate",
"@kcp/functions": "github:pengubot/functions#build",
"@lavacord/discord.js": "^0.0.7",
"@pengubot/music": "github:pengubot/music#build",
Expand Down
4 changes: 2 additions & 2 deletions src/commands/General/Chat Bot Info/donate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = class extends Command {

constructor(...args) {
super(...args, {
aliases: ["patreon", "patron"],
aliases: ["patreon", "patron", "premium"],
guarded: true,
requiredPermissions: ["EMBED_LINKS", "ATTACH_FILES"],
description: language => language.get("COMMAND_DONATE_DESCRIPTION")
Expand All @@ -15,7 +15,7 @@ module.exports = class extends Command {
async run(msg) {
const embed = new MessageEmbed()
.setDescription(msg.language.get("COMMAND_DONATE"))
.setAuthor("PenguBot - Donate and Support", this.client.user.displayAvatarURL(), "https://www.pengubot.com")
.setAuthor("PenguBot - Premium", this.client.user.displayAvatarURL(), "https://www.pengubot.com")
.setThumbnail("https://i.imgur.com/bSOBK4s.png")
.setColor("RANDOM");
return msg.sendEmbed(embed);
Expand Down
4 changes: 3 additions & 1 deletion src/commands/General/Chat Bot Info/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ module.exports = class extends Command {
async run(msg) {
let [users, guilds, channels, memory, vc, cpm, listeners] = [0, 0, 0, 0, 0, 0, 0];

const results = await this.client.shard.broadcastEval(`[this.guilds.cache.reduce((prev, val) => val.memberCount + prev, 0), this.guilds.cache.size, this.channels.cache.size, (process.memoryUsage().heapUsed / 1024 / 1024), this.music.filter(music => music.playing).size, this.health.commands.cmdCount[59].count, this.music.filter(music => music.playing).map(music => music.voiceChannel && music.voiceChannel.members.filter(mem => !mem.user.bot).size).reduce((prev, val) => prev + val, 0)]`);
const results = await this.client.shard.broadcastEval(`[this.guilds.cache.reduce((prev, val) => val.memberCount + prev, 0), this.guilds.cache.size, this.channels.cache.size, (process.memoryUsage().heapUsed / 1024 / 1024), this.music.filter(music => music.playing).size, this.health.commands.cmdCount[59].count, this.music.filter(music => music.playing).map(music => music.voiceChannel && music.voiceChannel.members.filter(mem => !mem.user.bot).size).reduce((prev, val) => prev + val, 0)]`).catch(() => null);
if (!results) return msg.reply("Oops! There appears to be a glitch in the matrix. Please try again later.");

for (const result of results) {
users += result[0];
guilds += result[1];
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Utilities/translate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { Command } = require("../../index");
const translate = require("@k3rn31p4nic/google-translate-api");
const translate = require("@iamtraction/google-translate");

module.exports = class extends Command {

Expand Down
15 changes: 6 additions & 9 deletions src/languages/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,25 @@ module.exports = class extends Language {
"Moderation, Fun, Utilities and more. It is developed in NodeJS using many different",
"technologies such as RethinkDB, JavaScript and Linux.",
"",
"• **Author:** [AdityaTD#5346](https://www.AdityaTD.me)",
"• **Author:** [AdityaTD#5346](https://www.AdityaTripathi.co.in)",
`• **Version:** ${version}`,
"• **Website:** <https://www.PenguBot.com>",
"• **Patreon:** <https://www.Patreon.com/PenguBot>",
"• **PayPal:** <https://www.paypal.me/adityatripathid>",
"• **Discord Guild:** <https://discord.gg/6KpTfqR>",
"• **GitHub:** <https://www.github.com/AdityaTD/PenguBot>",
"• **Database:** RethinkDB"
"• **GitHub:** <https://www.github.com/PenguBot>"
],
COMMAND_DONATE: [
"PenguBot runs on multipe servers rented out across the globe and that requires the rent. If you'd like to support PenguBot and it's financial costs in return for perks mentioned below please visit the following:",
"Enjoying Pengu? Then you'll definately love Pengu Premium! Support us and recieve some awesome perks for your contribution!",
"",
"__Perks__:",
"• Unlimited Access to Queue Lengths, Volume Adjustment and more!",
"• No Vote Locking - No Need To Upvote for Locked Commands",
"• Better Uptime with Patron Only Bot",
"• Special Role in Official Pengu Squad Server",
"• Better Uptime and Premium Support from Pengu's Team",
"• Special Role in Climactic's Official Server",
"",
"• **Patreon:** https://www.patreon.com/PenguBot",
"• **PayPal:** https://www.paypal.me/adityatripathid",
"• **Crypto Donations:** https://1upcoin.com/donate/adityatd",
"• **PenguBot's Donation Page:** https://www.PenguBot.com/donate"
"• **PenguBot's Premium Page:** https://www.PenguBot.com/premium"
],
COMMAND_HELP_NODM: "📪 | You have DMs disabled, I couldn't send you the commands in DMs so here's a link to all the commands: <https://www.pengubot.com/commands>",
COMMAND_UPVOTE: ["Want PenguBot to become bigger and be available in more guilds you visit?",
Expand Down
15 changes: 6 additions & 9 deletions src/languages/es-ES.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,25 @@ module.exports = class extends Language {
"Moderation, Fun, Utilities and more. It is developed in NodeJS using many different",
"technologies such as RethinkDB, JavaScript and Linux.",
"",
"• **Author:** [AdityaTD#5346](https://www.AdityaTD.me)",
"• **Author:** [AdityaTD#5346](https://www.AdityaTripathi.co.in)",
`• **Version:** ${version}`,
"• **Website:** <https://www.PenguBot.com>",
"• **Patreon:** <https://www.Patreon.com/PenguBot>",
"• **PayPal:** <https://www.paypal.me/adityatripathid>",
"• **Discord Guild:** <https://discord.gg/6KpTfqR>",
"• **GitHub:** <https://www.github.com/AdityaTD/PenguBot>",
"• **Database:** RethinkDB"
"• **GitHub:** <https://www.github.com/PenguBot>"
],
COMMAND_DONATE: [
"PenguBot runs on multipe servers rented out across the globe and that requires the rent. If you'd like to support PenguBot and it's financial costs in return for perks mentioned below please visit the following:",
"Enjoying Pengu? Then you'll definately love Pengu Premium! Support us and recieve some awesome perks for your contribution!",
"",
"__Perks__:",
"• Unlimited Access to Queue Lengths, Volume Adjustment and more!",
"• No Vote Locking - No Need To Upvote for Locked Commands",
"• Better Uptime with Patron Only Bot",
"• Special Role in Official Pengu Squad Server",
"• Better Uptime and Premium Support from Pengu's Team",
"• Special Role in Climactic's Official Server",
"",
"• **Patreon:** https://www.patreon.com/PenguBot",
"• **PayPal:** https://www.paypal.me/adityatripathid",
"• **Crypto Donations:** https://1upcoin.com/donate/adityatd",
"• **PenguBot's Donation Page:** https://www.PenguBot.com/donate"
"• **PenguBot's Premium Page:** https://www.PenguBot.com/premium"
],
COMMAND_HELP_NODM: "📪 | You have DMs disabled, I couldn't send you the commands in DMs so here's a link to all the commands: <https://www.pengubot.com/commands>",
COMMAND_UPVOTE: ["Want PenguBot to become bigger and be available in more guilds you visit?",
Expand Down
10 changes: 4 additions & 6 deletions src/languages/fr-FR.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ module.exports = class extends Language {
COMMAND_INFO: [
"PenguBot est un bot Discord multi-usages rempli de fonctionnalités quels Modération, amusement, utilitaires et plus. Il est développé dans NodeJS en utilisant de nombreuses technologies différentes telles que RethinkDB, JavaScript and Linux.",
"",
"• **Auteur:** [AdityaTD#5346](https://www.AdityaTD.me)",
"• **Auteur:** [AdityaTD#5346](https://www.AdityaTripathi.co.in)",
`• **Version:** ${version}`,
"• **Site Internet:** <https://www.PenguBot.com>",
"• **Patreon:** <https://www.Patreon.com/PenguBot>",
"• **Discord Guilde:** <https://discord.gg/6KpTfqR>",
"• **GitHub:** <https://www.github.com/AdityaTD/PenguBot>",
"• **Database:** RethinkDB"
"• **GitHub:** <https://www.github.com/AdityaTD/PenguBot>"
],
COMMAND_DONATE: [
"PenguBot fonctionne sur plusieurs serveurs loués dans le monde entier, ce qui nécessite un loyer. Si vous souhaitez soutenir PenguBot et que ses coûts financiers sont en contrepartie des avantages mentionnés ci-dessous, veuillez visiter la page suivante:",
"Enjoying Pengu? Then you'll definately love Pengu Premium! Support us and recieve some awesome perks for your contribution!",
"",
"__Perks__:",
"• Accès illimité a la durée de la play, réglage du volume et plus encore!",
Expand All @@ -38,8 +37,7 @@ module.exports = class extends Language {
"• Rôle spécial dans le serveur officiel de Pengu Squad",
"",
"• **Patreon:** https://www.patreon.com/PenguBot",
"• **Crypto Donations:** https://1upcoin.com/donate/adityatd",
"• **PenguBot's Donation Page:** https://www.PenguBot.com/donate"
"• **PenguBot's Premium Page:** https://www.PenguBot.com/premium"
],
COMMAND_HELP_NODM: "📪 | Vous avez les DM désactivés, je ne pouvais pas vous envoyer les commandes dans les DM alors voici un lien vers toutes les commandes: <https://www.pengubot.com/commands>",
COMMAND_UPVOTE: ["Voulez-vous que PenguBot devienne plus grand et soit disponible dans plus de guildes que vous visitez?",
Expand Down
7 changes: 3 additions & 4 deletions src/languages/it-IT.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ module.exports = class extends Language {
COMMAND_INFO: [
"PenguBot è un bot multi-funzione per Discord ricco di funzionalità quali Moderazione, Divertimento, Utilità di sistema ed altro.. Sviluppato in NodeJS utilizzando diverse tecnologie quali RethinkDB, JavaScript e Linux.",
"",
"• **Autore:** [AdityaTD#5346](https://www.AdityaTD.me)",
"• **Autore:** [AdityaTD#5346](https://www.AdityaTripathi.co.in)",
`• **Versione:** ${version}`,
"• **Sito Web:** <https://www.PenguBot.com>",
"• **Patreon:** <https://www.Patreon.com/PenguBot>",
"• **Server Discord:** <https://discord.gg/6KpTfqR>",
"• **GitHub:** <https://www.github.com/AdityaTD/PenguBot>",
"• **Database:** RethinkDB"
"• **GitHub:** <https://www.github.com/AdityaTD/PenguBot>"
],
COMMAND_DONATE: [
"PenguBot funziona su vari server attorno al mondo e questo richiede un costo. Se ti andasse di supportare PenguBot in questi costi, verrai ricompensato nei seguenti modi:",
Expand All @@ -39,7 +38,7 @@ module.exports = class extends Language {
"",
"• **Patreon:** https://www.patreon.com/PenguBot",
"• **Crypto Donazioni:** https://1upcoin.com/donate/adityatd",
"• **Pagina di PenguBot per le donazioni:** https://www.PenguBot.com/donate"
"• **Pagina di PenguBot per le premium:** https://www.PenguBot.com/premium"
],
COMMAND_HELP_NODM: "📪 | Hai disabilitato i messaggi personali. Non posso inviarti i comandi in privato. Questo il link per la lista dei comandi disponibili : <https://www.pengubot.com/commands>",
COMMAND_UPVOTE: ["Vuoi che PenguBot sia più grande e disponbile su più server che frequenti?",
Expand Down
7 changes: 3 additions & 4 deletions src/languages/sar-IT.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ module.exports = class extends Language {
COMMAND_INFO: [
"PenguBot este uno multi-funtzione pro Discord prenu de funtzionalidadese commente: Moderatzione, Divertimentu, Utilidades de sistema et atteru.. Sviluppadu chin NodeJS utilisande diversasa tecnologiasa commente RethinkDB, JavaScript et Linux.",
"",
"• **Autore:** [AdityaTD#5346](https://www.AdityaTD.me)",
"• **Autore:** [AdityaTD#5346](https://www.AdityaTripathi.co.in)",
`• **Versione:** ${version}`,
"• **Situ Web:** <https://www.PenguBot.com>",
"• **Patreon:** <https://www.Patreon.com/PenguBot>",
"• **Server Discord:** <https://discord.gg/6KpTfqR>",
"• **GitHub:** <https://www.github.com/AdityaTD/PenguBot>",
"• **Database:** RethinkDB"
"• **GitHub:** <https://www.github.com/AdityaTD/PenguBot>"
],
COMMAND_DONATE: [
"PenguBot funtziona in varios servers in su mundu. Custa cosa costata in denaru. Si cherese podes supportare PenguBot chin minuju. Asa a che picare carchi pretziosu poterese:",
Expand All @@ -39,7 +38,7 @@ module.exports = class extends Language {
"",
"• **Patreon:** https://www.patreon.com/PenguBot",
"• **Crypto Donazioni:** https://1upcoin.com/donate/adityatd",
"• **Paghina de PenguBot pro sas donatzionese:** https://www.PenguBot.com/donate"
"• **Paghina de PenguBot pro sas premium:** https://www.PenguBot.com/premium"
],
COMMAND_HELP_NODM: "📪 | Hai disabilitato i messaggi personali. Non posso inviarti i comandi in privato. Questo il link per la lista dei comandi disponibili : <https://www.pengubot.com/commands>",
COMMAND_UPVOTE: ["Vuoi che PenguBot sia più grande e disponbile su più server che frequenti?",
Expand Down
30 changes: 30 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@
minimatch "^3.0.4"
strip-json-comments "^3.1.1"

"@iamtraction/google-translate@https://github.com/iamtraction/google-translate.git":
version "1.1.3"
resolved "https://github.com/iamtraction/google-translate.git#363662416a4f33238c8dcb4e89bba5c4baae9df9"
dependencies:
got "^11.8.2"

"@iamtraction/google-translate@iamtraction/google-translate":
version "1.1.3"
uid "363662416a4f33238c8dcb4e89bba5c4baae9df9"
resolved "https://codeload.github.com/iamtraction/google-translate/tar.gz/363662416a4f33238c8dcb4e89bba5c4baae9df9"
dependencies:
got "^11.8.2"

"@k3rn31p4nic/google-translate-api@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@k3rn31p4nic/google-translate-api/-/google-translate-api-1.1.1.tgz#3869854f7540bbb82afc1b61890281f5513e1717"
Expand Down Expand Up @@ -844,6 +857,23 @@ got@^11.1.1:
p-cancelable "^2.0.0"
responselike "^2.0.0"

got@^11.8.2:
version "11.8.2"
resolved "https://registry.yarnpkg.com/got/-/got-11.8.2.tgz#7abb3959ea28c31f3576f1576c1effce23f33599"
integrity sha512-D0QywKgIe30ODs+fm8wMZiAcZjypcCodPNuMz5H9Mny7RJ+IjJ10BdmGW7OM7fHXP+O7r6ZwapQ/YQmMSvB0UQ==
dependencies:
"@sindresorhus/is" "^4.0.0"
"@szmarczak/http-timer" "^4.0.5"
"@types/cacheable-request" "^6.0.1"
"@types/responselike" "^1.0.0"
cacheable-lookup "^5.0.3"
cacheable-request "^7.0.1"
decompress-response "^6.0.0"
http2-wrapper "^1.0.0-beta.5.2"
lowercase-keys "^2.0.0"
p-cancelable "^2.0.0"
responselike "^2.0.0"

has-flag@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
Expand Down