Skip to content

Commit

Permalink
Merge pull request #43 from reinhello/meta
Browse files Browse the repository at this point in the history
Update Metadata
  • Loading branch information
reinacchi authored Aug 6, 2022
2 parents 1bab44f + 106ffe7 commit 292c72e
Show file tree
Hide file tree
Showing 44 changed files with 221 additions and 214 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Contributing to Reader (Discord Bot)
# Contributing to NReader (Discord Bot)

Just do it.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Reader (Discord Bot)
# NReader (Discord Bot)

[![GitHub Release](https://img.shields.io/github/v/release/reinhello/Reader?color=%237289DA&include_prereleases)](https://github.com/reinhello/Reader/releases)
[![GitHub Release](https://img.shields.io/github/v/release/reinhello/NReader?color=%237289DA&include_prereleases)](https://github.com/reinhello/NReader/releases)
[![Crowdin](https://badges.crowdin.net/nreader/localized.svg)](https://crowdin.com/project/nreader)

A Discord bot.

Expand All @@ -12,16 +13,16 @@ A Discord bot.

## Task List

- [ ] Configuration
- [x] Configuration
- [x] Support fully Slash Commands
- [x] Multilingual
- [ ] ~~Dashboard~~

## Translate Reader
## Translate NReader

**Reader** supports languages other than English but we need help from someone who are able to dedicate their time on translating **Reader**'s strings.
**NReader** supports languages other than English but we need help from someone who are able to dedicate their time on translating **NReader**'s strings.

- Click [Here](https://crowdin.com/project/readerchan) to translate!
- Click [Here](https://crowdin.com/project/nreader) to translate!

## Support Guide

Expand Down
6 changes: 3 additions & 3 deletions bot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM node:14.16.0
WORKDIR /Reader
RUN npm run init
FROM node:16.13.0
WORKDIR /NReader/bot
RUN npm start
74 changes: 40 additions & 34 deletions bot/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions bot/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "reader-bot",
"name": "nreader-bot",
"version": "0.2.1",
"description": "Reader",
"description": "NReader",
"scripts": {
"dev": "ts-node-dev ./src/Reader.ts",
"start": "ts-node ./src/Reader.ts"
"dev": "ts-node-dev ./src/NReader.ts",
"start": "ts-node ./src/NReader.ts"
},
"keywords": [
"reader"
Expand All @@ -13,7 +13,7 @@
"license": "MIT",
"dependencies": {
"eris": "^0.17.1",
"reader-framework": "file:../framework"
"nreader-framework": "file:../framework"
},
"devDependencies": {
"ts-node": "^10.8.2",
Expand Down
6 changes: 3 additions & 3 deletions bot/src/Commands/General/Ping.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ReaderCommand, ReaderInterface } from "reader-framework";
import { NReaderCommand, NReaderInterface } from "nreader-framework";

export const command: ReaderInterface.ICommand = {
export const command: NReaderInterface.ICommand = {
description: "Ping the bot",
name: "ping",
type: 1,
run: async (payload) => {
return new ReaderCommand(payload).pingCommand();
return new NReaderCommand(payload).pingCommand();
}
}
6 changes: 3 additions & 3 deletions bot/src/Commands/General/Stats.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ReaderCommand, ReaderInterface } from "reader-framework";
import { NReaderCommand, NReaderInterface } from "nreader-framework";

export const command: ReaderInterface.ICommand = {
export const command: NReaderInterface.ICommand = {
name: "stats",
description: "View the bot's statistics",
type: 1,
run: async (payload) => {
return new ReaderCommand(payload).statsCommand();
return new NReaderCommand(payload).statsCommand();
}
}
6 changes: 3 additions & 3 deletions bot/src/Commands/Main/Bookmark.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReaderCommand, ReaderInterface } from "reader-framework";
import { NReaderCommand, NReaderInterface } from "nreader-framework";

export const command: ReaderInterface.ICommand = {
export const command: NReaderInterface.ICommand = {
name: "bookmark",
description: "Check the user bookmark library",
type: 1,
Expand All @@ -16,6 +16,6 @@ export const command: ReaderInterface.ICommand = {
}
],
run: async (payload) => {
return new ReaderCommand(payload).bookmarkCommand();
return new NReaderCommand(payload).bookmarkCommand();
}
}
6 changes: 3 additions & 3 deletions bot/src/Commands/Main/Read.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReaderCommand, ReaderInterface } from "reader-framework";
import { NReaderCommand, NReaderInterface } from "nreader-framework";

export const command: ReaderInterface.ICommand = {
export const command: NReaderInterface.ICommand = {
description: "Read a doujin from NHentai",
name: "read",
nsfwOnly: true,
Expand All @@ -15,6 +15,6 @@ export const command: ReaderInterface.ICommand = {
}
],
run: async (payload) => {
return new ReaderCommand(payload).readCommand();
return new NReaderCommand(payload).readCommand();
}
}
6 changes: 3 additions & 3 deletions bot/src/Commands/Main/Search.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReaderCommand, ReaderInterface } from "reader-framework";
import { NReaderCommand, NReaderInterface } from "nreader-framework";

export const command: ReaderInterface.ICommand = {
export const command: NReaderInterface.ICommand = {
name: "search",
description: "Search for NHentai doujin",
nsfwOnly: true,
Expand All @@ -21,6 +21,6 @@ export const command: ReaderInterface.ICommand = {
],
type: 1,
run: (payload) => {
return new ReaderCommand(payload).searchCommand();
return new NReaderCommand(payload).searchCommand();
}
}
6 changes: 3 additions & 3 deletions bot/src/Commands/Main/SearchSimilar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReaderCommand, ReaderInterface } from "reader-framework";
import { NReaderCommand, NReaderInterface } from "nreader-framework";

export const command: ReaderInterface.ICommand = {
export const command: NReaderInterface.ICommand = {
name: "search-similar",
description: "Search for similar NHentai doujin",
nsfwOnly: true,
Expand All @@ -15,6 +15,6 @@ export const command: ReaderInterface.ICommand = {
],
type: 1,
run: (payload) => {
return new ReaderCommand(payload).searchSimilarCommand();
return new NReaderCommand(payload).searchSimilarCommand();
}
}
6 changes: 3 additions & 3 deletions bot/src/Commands/Mod/Config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReaderCommand, ReaderInterface } from "reader-framework";
import { NReaderCommand, NReaderInterface } from "nreader-framework";

export const command: ReaderInterface.ICommand = {
export const command: NReaderInterface.ICommand = {
name: "config",
description: "Configure the bot settings",
guildModOnly: true,
Expand Down Expand Up @@ -32,6 +32,6 @@ export const command: ReaderInterface.ICommand = {
}
],
run: async (payload) => {
return new ReaderCommand(payload).configCommand();
return new NReaderCommand(payload).configCommand();
}
}
6 changes: 3 additions & 3 deletions bot/src/Events/Debug.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReaderEvent, ReaderInterface } from "reader-framework";
import { NReaderEvent, NReaderInterface } from "nreader-framework";

export const event: ReaderInterface.IEvent = {
export const event: NReaderInterface.IEvent = {
name: "debug",
run: async (client, message: string, id: number) => {
return new ReaderEvent<string, number, any, any>(client, message, id).debugEvent();
return new NReaderEvent<string, number, any, any>(client, message, id).debugEvent();
}
}
8 changes: 4 additions & 4 deletions bot/src/Events/Error.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ReaderEvent, ReaderInterface } from "reader-framework";
import { NReaderEvent, NReaderInterface } from "nreader-framework";

export const event: ReaderInterface.IEvent = {
export const event: NReaderInterface.IEvent = {
name: "error",
run: (client, err: string, id: number) => {
return new ReaderEvent<string, number, any, any>(client, err, id).errorEvent();
return new NReaderEvent<string, number, any, any>(client, err, id).errorEvent();
}
}

process.on("unhandledRejection", (err: string) => {
return new ReaderEvent<string, any, any, any>(null, err).tsError();
return new NReaderEvent<string, any, any, any>(null, err).tsError();
});
6 changes: 3 additions & 3 deletions bot/src/Events/GuildCreate.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ReaderEvent, ReaderInterface } from "reader-framework";
import { NReaderEvent, NReaderInterface } from "nreader-framework";
import { Guild } from "eris";

export const event: ReaderInterface.IEvent = {
export const event: NReaderInterface.IEvent = {
name: "guildCreate",
run: async (client, guild: Guild) => {
return new ReaderEvent<Guild, any, any, any>(client, guild).guildCreateEvent();
return new NReaderEvent<Guild, any, any, any>(client, guild).guildCreateEvent();
}
}
6 changes: 3 additions & 3 deletions bot/src/Events/InteractionCreate.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { CommandInteraction, TextableChannel } from "eris";
import { ReaderEvent, ReaderInterface } from "reader-framework";
import { NReaderEvent, NReaderInterface } from "nreader-framework";

export const event: ReaderInterface.IEvent = {
export const event: NReaderInterface.IEvent = {
name: "interactionCreate",
run: (client, interaction: CommandInteraction<TextableChannel>) => {
return new ReaderEvent<CommandInteraction<TextableChannel>, any, any, any>(client, interaction).interactionCreateEvent();
return new NReaderEvent<CommandInteraction<TextableChannel>, any, any, any>(client, interaction).interactionCreateEvent();
}
}
6 changes: 3 additions & 3 deletions bot/src/Events/Ready.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReaderEvent, ReaderInterface } from "reader-framework";
import { NReaderEvent, NReaderInterface } from "nreader-framework";

export const event: ReaderInterface.IEvent = {
export const event: NReaderInterface.IEvent = {
name: "ready",
run: (client) => {
return new ReaderEvent(client).readyEvent();
return new NReaderEvent(client).readyEvent();
}
}
4 changes: 2 additions & 2 deletions bot/src/Reader.ts → bot/src/NReader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ReaderClient } from "reader-framework";
import { NReaderClient } from "nreader-framework";
import * as Config from "../../config/config.json";

const client = new ReaderClient(Config.BOT.TOKEN, {
const client = new NReaderClient(Config.BOT.TOKEN, {
defaultImageFormat: "png",
intents: [
"guilds",
Expand Down
Loading

0 comments on commit 292c72e

Please sign in to comment.