Skip to content

Commit

Permalink
Add nsfw flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkiir committed Feb 6, 2023
1 parent 9985924 commit d4dd89a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions bot/classes/hyperbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 22,7 @@ export type VMRequestBody = {
height?: number;
fps?: number;
hide_cursor?: boolean;
nsfw?: boolean;
};

type RequestInit = Exclude<Parameters<typeof fetch>[1], undefined>;
Expand Down
4 changes: 4 additions & 0 deletions bot/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 65,10 @@ export default class Start extends SlashCommand<BotClient> {
options.kiosk = true;
features.push("Kiosk");
}
if (extraOptions.includes("--nsfw")) {
options.nsfw = true;
features.push("NSFW");
}
const session = await createSession(options);
await ctx.send({
embeds: [
Expand Down

0 comments on commit d4dd89a

Please sign in to comment.