-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from reinhello/meta
Update Metadata
- Loading branch information
Showing
44 changed files
with
221 additions
and
214 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Contributing to Reader (Discord Bot) | ||
# Contributing to NReader (Discord Bot) | ||
|
||
Just do it. |
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
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 |
---|---|---|
@@ -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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -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(); | ||
} | ||
} |
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 |
---|---|---|
@@ -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(); | ||
} | ||
} |
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
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
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
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
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
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 |
---|---|---|
@@ -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(); | ||
} | ||
} |
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 |
---|---|---|
@@ -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(); | ||
}); |
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 |
---|---|---|
@@ -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(); | ||
} | ||
} |
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 |
---|---|---|
@@ -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(); | ||
} | ||
} |
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 |
---|---|---|
@@ -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(); | ||
} | ||
} |
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
Oops, something went wrong.