mirror of
https://github.com/gabrielkheisa/discord-active-developer-badge.git
synced 2025-09-13 14:51:10 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a5234c7904 |
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@@ -1,23 +1,20 @@
|
|||||||
name: Build and Publish Docker Image
|
name: Docker Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # Trigger the workflow on pushes to the main branch
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Login to GitHub Packages Docker registry
|
- name: Build Docker image
|
||||||
run: echo "${{ secrets.GH_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.repository_owner }} --password-stdin
|
run: docker build -t discord-badge .
|
||||||
|
|
||||||
- name: Build Docker image
|
|
||||||
run: docker build -t docker.pkg.github.com/${{ github.repository }}/discord-badge:latest .
|
|
||||||
|
|
||||||
- name: Push Docker image
|
|
||||||
run: docker push docker.pkg.github.com/${{ github.repository }}/discord-badge:latest
|
|
16
.replit
16
.replit
@@ -52,16 +52,16 @@ sourceMaps = true
|
|||||||
stopOnEntry = false
|
stopOnEntry = false
|
||||||
type = "pwa-node"
|
type = "pwa-node"
|
||||||
|
|
||||||
# [packager]
|
[packager]
|
||||||
# language = "nodejs"
|
language = "nodejs"
|
||||||
|
|
||||||
# [packager.features]
|
[packager.features]
|
||||||
# packageSearch = true
|
packageSearch = true
|
||||||
# guessImports = true
|
guessImports = true
|
||||||
# enabledForHosting = false
|
enabledForHosting = false
|
||||||
|
|
||||||
# [interpreter]
|
[interpreter]
|
||||||
# command = ["prybar-nodejs", "-q", "--ps1", "\u0001\u001B[33m\u0002\u0001\u001B[00m\u0002 ", "-i"]
|
command = ["prybar-nodejs", "-q", "--ps1", "\u0001\u001B[33m\u0002\u0001\u001B[00m\u0002 ", "-i"]
|
||||||
|
|
||||||
[unitTest]
|
[unitTest]
|
||||||
language = "nodejs"
|
language = "nodejs"
|
||||||
|
37
README.md
37
README.md
@@ -46,19 +46,7 @@ docker build -t discord-badge .
|
|||||||
```
|
```
|
||||||
3. Run the container and insert your Discord bot token
|
3. Run the container and insert your Discord bot token
|
||||||
```bash
|
```bash
|
||||||
docker run -d -e TOKEN=<your_bot_token> discord-badge
|
docker run -it discord-badge
|
||||||
```
|
|
||||||
4. Jump directly to step 12 and follow the remaining steps from the main instruction
|
|
||||||
|
|
||||||
### With pre-built Docker Image
|
|
||||||
1. Follow step 1 to 4 from the main instruction above
|
|
||||||
2. Pull the Docker image
|
|
||||||
```bash
|
|
||||||
docker pull ghcr.io/gabrielkheisa/discord-active-developer-badge/discord-badge:latest
|
|
||||||
```
|
|
||||||
3. Run the container and insert your Discord bot token
|
|
||||||
```bash
|
|
||||||
docker run -d -e TOKEN=<your_bot_token> ghcr.io/gabrielkheisa/discord-active-developer-badge/discord-badge:latest
|
|
||||||
```
|
```
|
||||||
4. Jump directly to step 12 and follow the remaining steps from the main instruction
|
4. Jump directly to step 12 and follow the remaining steps from the main instruction
|
||||||
|
|
||||||
@@ -70,6 +58,29 @@ docker run -d -e TOKEN=<your_bot_token> ghcr.io/gabrielkheisa/discord-active-dev
|
|||||||
If you're encountering any issues, [create a new GitHub issue](https://github.com/hackermondev/discord-active-developer/issues) or join [this](https://discord.gg/M5MSE9CvNM) server and ping me in the `#general` channel.
|
If you're encountering any issues, [create a new GitHub issue](https://github.com/hackermondev/discord-active-developer/issues) or join [this](https://discord.gg/M5MSE9CvNM) server and ping me in the `#general` channel.
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------
|
||||||
|
# Sponsored by **SkySilk**
|
||||||
|

|
||||||
|
|
||||||
|
SkySilk is the #1 VPS hosting solution for Discord bots, website, and more.
|
||||||
|
|
||||||
|
Choose from dozens of Linux apps & clean OS installs to deploy in seconds with just 1-click. Whether you're running a small cloud operation or part of an enterprise-level organization, SkySilk offers over 40 resource plans to ensure you have the right cloud VPS environment suitable for your projects.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
1. Start for $4.00/M: Deploy an SSD cloud server starting at just $4.00/month, scale as you go.
|
||||||
|
2. Auto Backups & Snapshots: Get peace of mind with automatic weekly cloud backups & snapshots.
|
||||||
|
3. Flexible Resource Options: A variety of monthly plans to meet any workload and budget.
|
||||||
|
4. Triple Replicated SSD: Industry leading Infiniband speeds for rapid deployment and optimal I/O.
|
||||||
|
5. Earn Hosting Rewards: Earn up to 10x SkySilk Rewards points on every transaction and referral, redeemable for Account Credit and other great rewards!
|
||||||
|
6. Powered by Open Source: Flexibility and compatibility with many familiar and popular Linux-based open source software solutions.
|
||||||
|
7. Start for Ceph File Storage $4.00/M: Optimized to utilize Ceph storage for no single point of failure.
|
||||||
|
8. Premium Infrastructure: NVMe SSD Container-based cloud architecture with AMD EPYC 7601 CPU, hosted on a carefully architected Infiniband network.
|
||||||
|
|
||||||
|
[Get started now (with free $25 credit to get you started with any product)](https://www.skysilk.com/ref/hdOgCmOaSB)
|
||||||
|
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
|
||||||
# Star the repo!!!
|
# Star the repo!!!
|
||||||
If you were able to successfully get the badge from this, star this repository so more people can see it and feel free to join our Discord server: https://discord.gg/M5MSE9CvNM
|
If you were able to successfully get the badge from this, star this repository so more people can see it and feel free to join our Discord server: https://discord.gg/M5MSE9CvNM
|
||||||
|
|
||||||
|
14
index.js
14
index.js
@@ -34,7 +34,7 @@ client.on('interactionCreate', (interaction) => {
|
|||||||
|
|
||||||
const question = (q) => new Promise((resolve) => rl.question(q, resolve));
|
const question = (q) => new Promise((resolve) => rl.question(q, resolve));
|
||||||
(async ()=>{
|
(async ()=>{
|
||||||
const token = process.env.TOKEN;
|
const token = await question('Application token? ');
|
||||||
if(!token) throw new Error('Invalid token');
|
if(!token) throw new Error('Invalid token');
|
||||||
|
|
||||||
const ratelimitTest = await fetch(`https://discord.com/api/v9/invites/discord-developers`);
|
const ratelimitTest = await fetch(`https://discord.com/api/v9/invites/discord-developers`);
|
||||||
@@ -55,4 +55,16 @@ const question = (q) => new Promise((resolve) => rl.question(q, resolve));
|
|||||||
await client.rest.put(Routes.applicationCommands(client.user.id), { body: commands });
|
await client.rest.put(Routes.applicationCommands(client.user.id), { body: commands });
|
||||||
|
|
||||||
console.log('DONE | Application/Bot is up and running. DO NOT CLOSE THIS TAB UNLESS YOU ARE FINISHED USING THE BOT, IT WILL PUT THE BOT OFFLINE.');
|
console.log('DONE | Application/Bot is up and running. DO NOT CLOSE THIS TAB UNLESS YOU ARE FINISHED USING THE BOT, IT WILL PUT THE BOT OFFLINE.');
|
||||||
|
|
||||||
|
|
||||||
|
// Skysilk Sponsorship (feel free to remove this if you're editing the code)
|
||||||
|
console.log(`\n\n`);
|
||||||
|
const chalk = require('chalk');
|
||||||
|
require('console-png').attachTo(console);
|
||||||
|
|
||||||
|
|
||||||
|
console.log(chalk.bold('Sponsored by', chalk.hex('#5A96F6')('SkySilk')));
|
||||||
|
console.log(`The #1 VPS hosting solution for Discord bots, website, and more.\nChoose from dozens of Linux apps & clean OS installs to deploy in seconds with just 1-click. Whether you're running a small cloud operation or part of an enterprise-level organization, SkySilk offers over 40 resource plans to ensure you have the right cloud VPS environment suitable for your projects.`);
|
||||||
|
console.log(`----> ${chalk.green.bold(`https://bit.ly/SkysilkBotHosting`)} <----\n`);
|
||||||
|
console.png(require('path').join(__dirname, 'assets', 'skysilk-logo-icon.png'))
|
||||||
})();
|
})();
|
||||||
|
Reference in New Issue
Block a user