Compare commits

..

12 Commits

Author SHA1 Message Date
Gabriel Kheisa
483e80a8df Merge branch 'hackermondev:main' into main 2025-02-15 23:07:37 +07:00
hackermondev
6c41fbefd4 Merge pull request #59 from hackermondev/remove-sponsor
Remove SkySilk sponsor
2024-09-13 17:23:16 -04:00
hackermondev
70473bb7e9 remove skysilk 2024-09-13 17:22:45 -04:00
hackermondev
a34bbd56e7 remove from README 2024-09-13 17:22:23 -04:00
hackermondev
41a6966e6f fix(.replit): use proper commands 2024-06-13 10:24:50 -04:00
gabrielkheisa
0725c48088 update 2024-04-08 01:08:38 +07:00
gabrielkheisa
ab64f2a90d fix 2024-04-08 00:39:21 +07:00
gabrielkheisa
82ee4813fa deployment for Docker 2024-04-08 00:37:38 +07:00
Gabriel Kheisa
11eb8aa2e5 Update main.yml 2024-04-07 16:04:26 +07:00
gabrielkheisa
2cbe6e45e2 merge dev into main 2024-04-07 16:03:01 +07:00
Gabriel Kheisa
9107c5d235 Create main.yml 2024-04-07 15:15:50 +07:00
hackermon
28be1cbbec Merge pull request #51 from Onako2/patch-1
inndex.js -> index.js
2023-11-03 13:22:52 -04:00
4 changed files with 35 additions and 55 deletions

View File

@@ -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: Build Docker image - name: Login to GitHub Packages Docker registry
run: docker build -t discord-badge . run: echo "${{ secrets.GH_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.repository_owner }} --password-stdin
- 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
View File

@@ -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"

View File

@@ -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 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 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**
![image](https://user-images.githubusercontent.com/60828015/221383603-31059a63-17bd-44d7-a1c6-8bde84faaf14.png)
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

View File

@@ -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'))
})(); })();