Compare commits

1 Commits
main ... dev

Author SHA1 Message Date
gabrielkheisa
a5234c7904 remove unecessary exposed port 2024-04-07 17:23:48 +07:00
4 changed files with 55 additions and 35 deletions

View File

@@ -1,23 +1,20 @@
name: Build and Publish Docker Image
name: Docker Build
on:
push:
branches:
- main # Trigger the workflow on pushes to the main branch
- main
pull_request:
branches:
- main
jobs:
publish:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout code
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
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
run: docker build -t discord-badge .

16
.replit
View File

@@ -52,16 +52,16 @@ sourceMaps = true
stopOnEntry = false
type = "pwa-node"
# [packager]
# language = "nodejs"
[packager]
language = "nodejs"
# [packager.features]
# packageSearch = true
# guessImports = true
# enabledForHosting = false
[packager.features]
packageSearch = true
guessImports = true
enabledForHosting = false
# [interpreter]
# command = ["prybar-nodejs", "-q", "--ps1", "\u0001\u001B[33m\u0002\u0001\u001B[00m\u0002 ", "-i"]
[interpreter]
command = ["prybar-nodejs", "-q", "--ps1", "\u0001\u001B[33m\u0002\u0001\u001B[00m\u0002 ", "-i"]
[unitTest]
language = "nodejs"

View File

@@ -46,19 +46,7 @@ docker build -t discord-badge .
```
3. Run the container and insert your Discord bot token
```bash
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
docker run -it discord-badge
```
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.
--------------------------------------
# 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!!!
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));
(async ()=>{
const token = process.env.TOKEN;
const token = await question('Application token? ');
if(!token) throw new Error('Invalid token');
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 });
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'))
})();