mirror of
https://github.com/gabrielkheisa/discord-active-developer-badge.git
synced 2025-09-13 06:41:10 +00:00
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
483e80a8df | ||
|
6c41fbefd4 | ||
|
70473bb7e9 | ||
|
a34bbd56e7 | ||
|
41a6966e6f | ||
|
0725c48088 | ||
|
ab64f2a90d | ||
|
82ee4813fa | ||
|
11eb8aa2e5 | ||
|
2cbe6e45e2 | ||
|
9107c5d235 | ||
|
28be1cbbec |
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@@ -1,20 +1,23 @@
|
|||||||
name: Docker Build
|
name: Build and Publish Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main # Trigger the workflow on pushes to the main branch
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Login to GitHub Packages Docker registry
|
||||||
|
run: echo "${{ secrets.GH_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.repository_owner }} --password-stdin
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build -t discord-badge .
|
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"
|
||||||
|
@@ -22,8 +22,5 @@ WORKDIR /usr/src/app
|
|||||||
# Copy the built artifacts from the builder stage to the production stage
|
# Copy the built artifacts from the builder stage to the production stage
|
||||||
COPY --from=builder /usr/src/app .
|
COPY --from=builder /usr/src/app .
|
||||||
|
|
||||||
# Expose the port the app runs on
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
# Command to run the application in the production stage
|
# Command to run the application in the production stage
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
||||||
|
37
README.md
37
README.md
@@ -46,7 +46,19 @@ 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 -it -p 3000:3000 discord-badge
|
docker run -d -e TOKEN=<your_bot_token> 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
|
||||||
|
|
||||||
@@ -58,29 +70,6 @@ docker run -it -p 3000:3000 discord-badge
|
|||||||
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 = await question('Application token? ');
|
const token = process.env.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,16 +55,4 @@ 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