Skip to content

Commit

Permalink
replace apiPassword with apiToken (still unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Nov 21, 2023
1 parent 5615f99 commit e32afa0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion json/tokens.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"prefix": "/",
"token": "a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9",
"apiUrl": "https://api.faithfulpack.net/v2/",
"apiPassword": "a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9",
"apiToken": "a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9",
"gitToken": "a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7h8i9",
"errorChannel": "12345678987654321",
"developers": ["12345678987654321", "12345678987654321"],
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tokens from "@json/tokens.json";
export default function StartClient(firstStart = true, interaction?: ChatInputCommandInteraction) {
new Client(
{
tokens: tokens,
tokens,
// remove this line to die instantly ~JackDotJS 2021
allowedMentions: { parse: ["users", "roles"], repliedUser: false },
partials: [
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export interface Tokens {
prefix: string; // for shorthand prefix commands
token: string;
apiUrl: string;
apiPassword?: string; // for api authentication
apiToken?: string; // for api authentication
errorChannel: string; // error channel where errors are sent
developers: string[]; // people authorized to use dev-only commands and features
gitToken: string; // for feedback system
Expand Down

0 comments on commit e32afa0

Please sign in to comment.