Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
cobaltt7 authored and github-actions[bot] committed Jan 4, 2025
1 parent c3c2401 commit 497c5fb
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 29 deletions.
5 changes: 1 addition & 4 deletions modules/bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,4 @@ else
},
);

defineChatCommand(
{ name: "info", description: "Show information about me and how I work" },
info,
);
defineChatCommand({ name: "info", description: "Show information about me and how I work" }, info);
5 changes: 0 additions & 5 deletions modules/bot/info.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import type { APIEmbedField, ChatInputCommandInteraction, User } from "discord.js";



import { inlineCode, Team, time, TimestampStyles } from "discord.js";
import { client, columnize } from "strife.js";



import constants from "../../common/constants.ts";
import pkg from "../../package.json" with { type: "json" };


const dependencyColumns = await getDependencies();

export default async function info(interaction: ChatInputCommandInteraction): Promise<void> {
Expand Down
5 changes: 0 additions & 5 deletions modules/roles/persisted.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import type { GuildMember, PartialGuildMember } from "discord.js";



import mongoose from "mongoose";



import config from "../../common/config.ts";


export const PERSISTED_ROLES = {
designer: "916020774509375528",
scradd: "1008190416396484700",
Expand Down
6 changes: 1 addition & 5 deletions modules/roles/scratch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ import type {

import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";

import {
ApplicationRoleConnectionMetadataType,
OAuth2Scopes,
Routes,
} from "discord.js";
import { ApplicationRoleConnectionMetadataType, OAuth2Scopes, Routes } from "discord.js";
import { client } from "strife.js";

import config from "../../common/config.ts";
Expand Down
4 changes: 0 additions & 4 deletions util/numbers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@




export type Duration =
| `a ${"few seconds" | "minute" | "day" | "month" | "year"}`
| "an hour"
Expand Down
2 changes: 0 additions & 2 deletions util/promises.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


// eslint-disable-next-line @typescript-eslint/no-explicit-any
export async function gracefulFetch<T = any>(apiUrl: string): Promise<T | undefined> {
const response = await fetch(apiUrl)
Expand Down
2 changes: 0 additions & 2 deletions util/scratch.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
;
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import constants from "../common/constants.ts";
import { gracefulFetch } from "./promises.ts";


export async function fetchUser(username: string) {
const user = await gracefulFetch<
| {
Expand Down
2 changes: 0 additions & 2 deletions util/text.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { IncomingMessage } from "node:http";



import constants from "../common/constants.ts";

/**
Expand Down

0 comments on commit 497c5fb

Please sign in to comment.