Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
*: Switched to the new docstring format
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpt-Dingus committed Aug 26, 2023
1 parent f7d8233 commit d5dbc8e
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 15 deletions.
2 changes: 2 additions & 0 deletions src/modules/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* @file
* Modules:
* - {@link apply}
*
* - {@link application}
* - Submodules: Get, Approve, Deny, Purge
*/

import {
Expand Down
5 changes: 4 additions & 1 deletion src/modules/autopaste.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/**
* @file This file contains the necessary information for autopasting messages
* @file
* Modules:
* - {@link autopaste}
*/

import {Colors, EmbedBuilder, Events, Message, Role} from 'discord.js';
import * as util from '../core/util.js';
import {request} from 'undici';
Expand Down
10 changes: 6 additions & 4 deletions src/modules/channel_logging/channel_logging.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
This module provides discord logging, and is intended to log messages to a collection of logging channels. Because this requires
a comparatively very high level amount of processing compared to other tasks, this code should be *very* optimized
*/
/**
* @file
* Modules:
* - {@link channelLogging}
* - Submodules: Populate
*/
import {
TextChannel,
CategoryChannel,
Expand Down
14 changes: 7 additions & 7 deletions src/modules/conch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* @file
* This file contains the 'conch' module definition.
* Modules:
* - {@link conch}
*/

import {Colors, EmbedBuilder} from 'discord.js';
Expand Down Expand Up @@ -65,12 +66,11 @@ const conch = new util.RootModule(
.find(arg => arg.name === 'question')!
.value!.toString();

const embed: EmbedBuilder = new EmbedBuilder();

embed.setTitle(formatQuestion(question));
embed.setDescription(getRandomReply());
embed.setColor(Colors.Blurple);
embed.setThumbnail(THUMBNAIL_URL);
const embed: EmbedBuilder = new EmbedBuilder()
.setTitle(formatQuestion(question))
.setDescription(getRandomReply())
.setColor(Colors.Blurple)
.setThumbnail(THUMBNAIL_URL);

await util.replyToInteraction(interaction, {embeds: [embed]});
}
Expand Down
4 changes: 3 additions & 1 deletion src/modules/factoids/factoids.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* @file
* This file contains the `factoid` module definition.
* Modules:
* - {@link factoid}

Check failure on line 4 in src/modules/factoids/factoids.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Delete `·`

Check failure on line 4 in src/modules/factoids/factoids.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Trailing spaces not allowed
* - Submodules: Get, Remember, Forget, Json, {@link trigger} -> (Add, Remove)
*/
import {ObjectId} from 'mongodb';
import type {Collection} from 'mongodb';
Expand Down
1 change: 1 addition & 0 deletions src/modules/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Modules:
* - {@link googleModule}
* - Submodules: Search, image
*

Check failure on line 6 in src/modules/google.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Delete `·`

Check failure on line 6 in src/modules/google.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Trailing spaces not allowed
* - {@link youtube}
*/

Expand Down
3 changes: 2 additions & 1 deletion src/modules/meta/bot.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* @file
* Modules:
* - {@link bot} - Info
* - {@link bot}
* - Submodules: Info
*/

import {Colors, EmbedBuilder, EmbedField} from 'discord.js';
Expand Down
6 changes: 5 additions & 1 deletion src/modules/note.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/**
* @file
* This file contains the 'notes' and 'whois' module definition.
* Modules:
* - {@link notes}
* - Submodules: Add, Clear, Get
*

Check failure on line 6 in src/modules/note.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Delete `·`

Check failure on line 6 in src/modules/note.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Trailing spaces not allowed
* - {@link whois}
*/

import type {Collection, Db} from 'mongodb';
Expand Down

0 comments on commit d5dbc8e

Please sign in to comment.