Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iwa authored Sep 27, 2020
2 parents 22bfe67 + cb878c8 commit b87a689
Show file tree
Hide file tree
Showing 47 changed files with 1,331 additions and 1,506 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

23 changes: 1 addition & 22 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,5 @@ name: Bug report
about: Report incorrect or unexpected behaviour of Kwako
title: ''
labels: bug
assignees: iwa

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. ...
2. ...
3. ...

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Further details:**
- Discord Platform: [e.g. Desktop, Browser]
- OS: [e.g. Windows, iOS]
- Node.js version: [if you don't know what it is, don't fill it out]
---
12 changes: 1 addition & 11 deletions .github/ISSUE_TEMPLATE/enhancement-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,5 @@ name: Enhancement request
about: Suggest an enhancement / upgrade to apply
title: ''
labels: enhancement
assignees: iwa

---

**To what feature your request is related to**
Give the name of the feature

**Describe the enhancement you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions you've considered.
---
9 changes: 1 addition & 8 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,5 @@ name: Feature request
about: Suggest an idea to add to Kwako
title: ''
labels: feature
assignees: iwa

---

**Describe the feature you'd like to add**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative features you've considered.
---
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,7 @@ build/
data/

# Changelog
CHANGELOG.md
CHANGELOG.md

# Lavalink bins
lavalink/*.jar
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
- Language used : `TypeScript, with NodeJS`
- Library used : `discord.js`

[![BCH Compliance](https://bettercodehub.com/edge/badge/iwa/Kwako?branch=master)](https://bettercodehub.com/)
[![CodeFactor Grade](https://www.codefactor.io/repository/github/iwa/kwako/badge)](https://www.codefactor.io/repository/github/iwa/kwako)
[![DeepScan Grade](https://deepscan.io/api/teams/10640/projects/13488/branches/228346/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=10640&pid=13488&bid=228346)
[![BCH compliance](https://bettercodehub.com/edge/badge/iwa/Kwako?branch=master&token=5720a73440a7a8e1a3a7e4275d8dab0ddbacecd8)](https://bettercodehub.com/)
[![CodeFactor](https://www.codefactor.io/repository/github/iwa/kwako/badge?s=c68de224d1a6db6598562d86decd9247c26336a5)](https://www.codefactor.io/repository/github/iwa/kwako)

## 🤝 Contributing

Expand Down
28 changes: 28 additions & 0 deletions lavalink/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
server:
port: 8081
address: 0.0.0.0
lavalink:
server:
password: "nowayimpossible"
sources:
youtube: true
bandcamp: true
soundcloud: true
twitch: true
vimeo: true
mixer: true
http: false
local: false
bufferDurationMs: 600
youtubePlaylistLoadLimit: 6 # Number of pages at 100 each
youtubeSearchEnabled: true
soundcloudSearchEnabled: true
gc-warnings: true

metrics:
prometheus:
enabled: false
endpoint: /metrics

sentry:
dsn: ""
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "kwako",
"version": "1.1.1",
"version": "1.1.2",
"description": "",
"main": "build/index.js",
"scripts": {
"build": "rm -rf build/ && tsc",
"update": "git fetch origin master && git pull origin master && rm -rf build/ && yarn && tsc",
"changelog": "github_changelog_generator -u iwa -p Kwako --exclude-labels \"duplicate\",\"question\",\"invalid\",\"wontfix\",\"Duplicate\",\"Question\",\"Invalid\",\"Wontfix\",\"Meta: Exclude From Changelog\",\"update\",\"question-discussion\",\"dependencies\" --add-sections '{\"features\":{\"prefix\":\"**New features:**\",\"labels\":[\"feature\", \"features\"]}}' --no-compare-link"
"changelog": "github_changelog_generator -u iwa -p Kwako --exclude-labels \"duplicate\",\"question\",\"invalid\",\"wontfix\",\"Duplicate\",\"Question\",\"Invalid\",\"Wontfix\",\"Meta: Exclude From Changelog\",\"update\",\"question-discussion\",\"dependencies\" --add-sections '{\"features\":{\"prefix\":\"**New features:**\",\"labels\":[\"feature\", \"features\"]}}' --no-compare-link",
"lavalink": "cd lavalink && java -jar Lavalink.jar"
},
"repository": {
"type": "git",
Expand All @@ -19,7 +20,6 @@
},
"homepage": "https://github.com/iwa/Kwako#readme",
"dependencies": {
"@discordjs/opus": "^0.3.2",
"@types/mongodb": "^3.5.27",
"@types/node": "^14.6.4",
"@types/pino": "^6.3.0",
Expand All @@ -30,14 +30,12 @@
"canvas": "^2.6.1",
"discord.js": "^12.3.1",
"dotenv": "^8.2.0",
"erela.js": "^2.0.0",
"mee6-levels-api": "^1.1.0",
"mongodb": "^3.6.1",
"pino": "^6.6.0",
"popyt": "^4.1.1",
"sodium": "^3.0.2",
"twitch": "^4.2.2",
"utf-8-validate": "^5.0.2",
"ytdl-core": "^3.2.2"
"utf-8-validate": "^5.0.2"
},
"devDependencies": {
"pino-pretty": "^4.2.1"
Expand Down
8 changes: 6 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { MongoClient, Db } from 'mongodb';

import axios from 'axios';

import { Manager } from 'erela.js';

// MongoDB constants
const url = process.env.MONGO_URL, dbName = process.env.MONGO_DBNAME;

Expand All @@ -22,6 +24,8 @@ export default new class Kwako extends Client {
public patrons: Set<string> = new Set();
private golden: Set<string> = new Set();

public music: Manager;

public constructor() {
super(
{
Expand Down Expand Up @@ -102,10 +106,10 @@ export default new class Kwako extends Client {
this.setInterval(async () => {
await this.getPledgeData();
}, 300000);
}
}

public async start(token: string) {
await this._init();
return this.login(token);
await this.login(token);
}
}
Loading

0 comments on commit b87a689

Please sign in to comment.