This repository has been archived by the owner on Nov 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mzrtamp
committed
Sep 17, 2021
0 parents
commit 9e4c5cc
Showing
76 changed files
with
9,018 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
# Logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and *not* Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# TypeScript out directory | ||
dist | ||
dist/ | ||
|
||
# Git files | ||
.github/ | ||
.git | ||
.env.example | ||
.env.schema | ||
|
||
# VSCode settings | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Use string ("" <==) if you need whitespace | ||
|
||
SECRET_DISCORD_TOKEN=Njk1NjY0ODU4NDA1Nzk3ODg4.dQw4w9WgXcQ.TmV2ZXIgZ29ubmEgZ2l2ZSB5b3UgdXA | ||
# Your Discord bot's token | ||
|
||
SECRET_YT_API_KEY=IAzSjcSjaIEWakos-_AKfaKejiwdjiASJIAsDs | ||
# Your Youtube API key for retrieving video info from YouTube if CONFIG_YOUTUBE_DATA_STRATEGY is set to api | ||
|
||
CONFIG_PREFIX=! | ||
# Your bot's prefix | ||
|
||
CONFIG_EMBED_COLOR=7289DA | ||
# The color for your bot's embed message (hex code without hashtag) | ||
|
||
CONFIG_STATUS_TYPE=listening | ||
# What type of status does the bot use (playing, listening, or watching, default: listening) | ||
|
||
CONFIG_STATUS_ACTIVITY="music on {guildsCount} guilds" | ||
# What status does the bot display (default: this one, available variables: guildsCount, usersCount, playingCount, and botPrefix) | ||
# NOTE ON {usersCount} VARIABLE: This only displays cached usersCount, to get full usersCount, please enable CONFIG_FETCH_ALL_USERS | ||
|
||
CONFIG_OWNERS=319872685897416725 | ||
# A Discord ID(s), use comma if you want to add more than 1 owner (DO NOT ADD SOMEONE ELSE ID THAT YOU DON'T TRUST) | ||
|
||
CONFIG_YOUTUBE_DATA_STRATEGY=scrape | ||
# Strategy for getting video info from youtube (scrape, or api, default: scrape) | ||
|
||
CONFIG_DISABLE_INVITE_CMD=no | ||
# Whether to disable the invite command or not (default: no) | ||
|
||
CONFIG_DEFAULT_VOLUME=50 | ||
# Default volume for music (default: 50) | ||
|
||
CONFIG_MAX_VOLUME=100 | ||
# Max volume allowed for music (default: 100) | ||
|
||
CONFIG_DISABLE_SONG_SELECTION=no | ||
# Whether to disable selecting tracks on play command, this will automatically selects the first track from search results (default: no) | ||
|
||
CONFIG_SEARCH_MAX_RESULTS=10 | ||
# Maximum tracks to list in track selection (default: 10, max: 10) | ||
|
||
CONFIG_SELECT_TIMEOUT=20 | ||
# Select track timeout when searching tracks (in seconds, default: 20 seconds) | ||
|
||
CONFIG_ALLOW_DUPLICATE=yes | ||
# Whether to allow users to add duplicate of tracks (yes or no, default: yes) | ||
|
||
CONFIG_CACHE_YOUTUBE_DOWNLOADS=no | ||
# Whether to download and cache tracks from youtube (yes or no, default: no) | ||
|
||
CONFIG_CACHE_MAX_LENGTH=5400 | ||
# Max track length in seconds that are allowed to be cached (default: 5400 <1 hour 30 minutes>) | ||
|
||
CONFIG_DELETE_QUEUE_TIMEOUT=180 | ||
# Timeout in seconds before queue is deleted when no one is in the voice channel (default: 180 <3 minutes>) | ||
|
||
CONFIG_TOTALSHARDS=auto | ||
# Total shards to spawn, use "auto" or a number (default: auto) | ||
|
||
CONFIG_FETCH_ALL_USERS=no | ||
# Whether to fetch all users on startup (warning: increased memory usage especially for bots with large users, default: no) | ||
# NOTE: You need to enable privileged GUILD_MEMBERS Intents on the developer page) | ||
|
||
CONFIG_DEBUG=no | ||
# Should logging use debug level? Please note that this is not recommended in production (default: no) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
SECRET_DISCORD_TOKEN= | ||
|
||
SECRET_YT_API_KEY= | ||
|
||
CONFIG_PREFIX= | ||
|
||
CONFIG_EMBED_COLOR= | ||
|
||
CONFIG_STATUS_TYPE= | ||
|
||
CONFIG_STATUS_ACTIVITY= | ||
|
||
CONFIG_OWNERS= | ||
|
||
CONFIG_YOUTUBE_DATA_STRATEGY= | ||
|
||
CONFIG_DISABLE_INVITE_CMD= | ||
|
||
CONFIG_DEFAULT_VOLUME= | ||
|
||
CONFIG_MAX_VOLUME= | ||
|
||
CONFIG_DISABLE_SONG_SELECTION= | ||
|
||
CONFIG_SEARCH_MAX_RESULTS= | ||
|
||
CONFIG_SELECT_TIMEOUT= | ||
|
||
CONFIG_ALLOW_DUPLICATE= | ||
|
||
CONFIG_CACHE_YOUTUBE_DOWNLOADS= | ||
|
||
CONFIG_CACHE_MAX_LENGTH= | ||
|
||
CONFIG_DELETE_QUEUE_TIMEOUT= | ||
|
||
CONFIG_TOTALSHARDS= | ||
|
||
CONFIG_FETCH_ALL_USERS= | ||
|
||
CONFIG_DEBUG= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Enforce UNIX newlines (LF) | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Global | ||
* @mozartrafi @mzrtamp @Hazmi35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "06:00" | ||
timezone: Asia/Jakarta | ||
open-pull-requests-limit: 99 | ||
target-branch: main | ||
reviewers: | ||
- mzrtamp | ||
labels: | ||
- dependencies | ||
commit-message: | ||
prefix: chore | ||
include: scope | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "06:00" | ||
timezone: Asia/Jakarta | ||
open-pull-requests-limit: 99 | ||
target-branch: main | ||
reviewers: | ||
- mzrtamp | ||
labels: | ||
- gh-actions | ||
- dependencies | ||
commit-message: | ||
prefix: ci | ||
include: scope | ||
- package-ecosystem: docker | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "06:00" | ||
timezone: Asia/Jakarta | ||
open-pull-requests-limit: 99 | ||
target-branch: main | ||
reviewers: | ||
- mzrtamp | ||
labels: | ||
- docker | ||
- dependencies | ||
commit-message: | ||
prefix: docker | ||
include: scope |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CodeQL | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "0 11 * * *" # "At 11:00." - crontab.guru (11:00 (+0) = 06:00 (+7)) | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
language: ["javascript"] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2.3.4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild (Attempts to build any compiled languages) | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Lint code & compile test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [">=14.x"] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2.3.4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2.4.0 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
check-latest: true | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: Lint code | ||
run: npm run lint | ||
|
||
compile: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [">=14.x"] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2.3.4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2.4.0 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
check-latest: true | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: Test compile | ||
run: npm run compile && rm -rf dist |
Oops, something went wrong.