Skip to content

Commit

Permalink
add bots
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Feb 4, 2024
1 parent 0994ec1 commit 1448a19
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions src/server/handlers/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export const bots = [
"bbhbot",
"beerlover",
"dhedge",
"hivebuzz",
"hiq.smartbot",
"ladytoken",
"lolzbot",
"pgm-curator",
"pixresteemer",
"poshthreads",
"sloth.buzz",
"tipu",
"thepimpdistrict",
"visualbot",
"wine.bot",
"youarealive",
]
4 changes: 2 additions & 2 deletions src/server/handlers/private-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {apiRequest, getPromotedEntries} from "../helper";

import {pipe} from "../util";
import { cache } from '../cache';
import {bots} from "./constants";

const validateCode = async (req: express.Request, res: express.Response): Promise<string | false> => {
const {code} = req.body;
Expand Down Expand Up @@ -626,8 +627,7 @@ export const channelAdd = async (req: express.Request, res: express.Response) =>
}

export const channelGet = async (req: express.Request, res: express.Response) => {
const {username} = req.params;
pipe(apiRequest(`channel/${username}`, "GET"), res);
res.send(bots)
}

export const channelsGet = async (req: express.Request, res: express.Response) => {
Expand Down
1 change: 1 addition & 0 deletions src/server/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ server
.get("^/private-api/engine-account-history", engineApi.engineAccountHistory)

// Private Api
.get("^/private-api/public/bots$", privateApi.channelGet)
.get("^/private-api/received-vesting/:username$", privateApi.receivedVesting)
.get("^/private-api/received-rc/:username$", privateApi.receivedRC)
.get("^/private-api/rewarded-communities$", privateApi.rewardedCommunities)
Expand Down

0 comments on commit 1448a19

Please sign in to comment.