Skip to content

Commit

Permalink
refactor: remove many deprecated things (skyra-project#2215)
Browse files Browse the repository at this point in the history
* refactor: remove many deprecated things

* refactor: even more removes

* chore: fixed some shit

permalink: http://whatthecommit.com/3893eeb94d775ab4fa6679b8a140c578

* chore: arrrrgggg

* chore: i don't believe it

Co-authored-by: Jeroen Claassens <[email protected]>
  • Loading branch information
kyranet and favna authored Mar 2, 2022
1 parent 0928045 commit 569de41
Show file tree
Hide file tree
Showing 387 changed files with 433 additions and 19,198 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- [`InfluxDB`]: Metrics platform.
- [`Lavalink`]: Audio server.
- [`Outflux`]: For exposing [`InfluxDB`] metrics to Skyra users.
- [`Redis`]: Caching for [`Saelem`], queueing for [`Lavalink`], and AFK status tracking.
- [`Redis`]: Caching for [`Saelem`] and queueing for [`Lavalink`].
- [`Saelem`]: Horoscope API.
- [`Star-Wars-Api`]: Star Wars API.

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"imports": {
"#lib/*": "./dist/lib/*.js",
"#lib/audio": "./dist/audio/lib/index.js",
"#lib/birthday": "./dist/lib/birthday/index.js",
"#lib/customCommands": "./dist/lib/customCommands/index.js",
"#lib/database": "./dist/lib/database/index.js",
"#lib/database/entities": "./dist/lib/database/entities/index.js",
Expand Down
6 changes: 5 additions & 1 deletion scripts/SetMigrations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ VALUES
(1633201003755, 'V58GiveawayAuthor1633201003755'),
(1633266112042, 'V59MigrateSelfmodEmojis1633266112042'),
(1633267799333, 'V60MigrateStarboardAndSuggestionEmojis1633267799333'),
(1634379789387, 'V61AddMusicAutoLeave1634379789387');
(1634379789387, 'V61AddMusicAutoLeave1634379789387'),
(1646161749171, 'V62VersionSevenRemoveGuildSettings1646161749171'),
(1646162907066, 'V63VersionSevenRemoveStarboard1646162907066'),
(1646163533583, 'V64VersionSevenRemoveSpouses1646163533583'),
(1646178098086, 'V65VersionSevenRemoveStaleSchedules1646178098086');

COMMIT;
9 changes: 0 additions & 9 deletions src/.env
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ PGSQL_DATABASE_HOST='localhost'
TYPEORM_DEBUG_LOGS=false

REDIS_ENABLED=true
REDIS_AFK_DB=3
REDIS_HOST='localhost'
REDIS_PORT=8287
REDIS_DB=1
Expand Down Expand Up @@ -64,7 +63,6 @@ GRAPHQL_STARWARS_URL='https://swapi.skyra.pw'
HASTEBIN_POST_URL='https://hastebin.skyra.pw'
HASTEBIN_GET_URL='https://hastebin.skyra.pw'

WEBHOOK_ERROR_ENABLED=true
WEBHOOK_ERROR_ID='648663047615021058'
WEBHOOK_ERROR_TOKEN=''

Expand All @@ -79,24 +77,17 @@ CRYPTOCOMPARE_TOKEN=''
DISCORD_BOT_LIST_TOKEN=''
DISCORD_BOTS_TOKEN=''
GOOGLE_API_TOKEN=''
GOOGLE_CUSTOM_SEARCH_IMAGE_TOKEN=''
GOOGLE_CUSTOM_SEARCH_WEB_TOKEN=''
GOOGLE_MAPS_API_TOKEN=''
KITSU_ID='AWQO5J657S'
KITSU_TOKEN='NzYxODA5NmY0ODRjYTRmMzQ2YjMzNzNmZmFhNjY5ZGRmYjZlMzViN2VkZDIzMGUwYjM5ZjQ5NjAwZGI4ZTc5MHJlc3RyaWN0SW5kaWNlcz1wcm9kdWN0aW9uX21lZGlhJmZpbHRlcnM9Tk9UK2FnZVJhdGluZyUzQVIxOA=='
NINTENDO_ID='U3B6GR4UA3'
NINTENDO_TOKEN='6efbfb0f8f80defc44895018caf77504'
NPM_SEARCH_ID='OFCNCOG2CU'
NPM_SEARCH_KEY='6fe4476ee5a1832882e326b506d14126'
OWLBOT_TOKEN=''
SENTRY_URL=''
THEMOVIEDATABASE_TOKEN=''
TIMEZONEDB_TOKEN=''
TOP_GG_TOKEN=''
TWITCH_CLIENT_ID=''
TWITCH_TOKEN=''
TWITCH_WEBHOOK_TOKEN=''
WEBHOOK_DISCORDS_TOKEN=''
WEBHOOK_TOPGG_TOKEN=''
WEEB_SH_TOKEN=''
XIVAPI_TOKEN=''
9 changes: 0 additions & 9 deletions src/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ PGSQL_DATABASE_HOST='localhost'
TYPEORM_DEBUG_LOGS=false

REDIS_ENABLED=true
REDIS_AFK_DB=3
REDIS_HOST='localhost'
REDIS_PORT=8287
REDIS_DB=1
Expand Down Expand Up @@ -64,7 +63,6 @@ GRAPHQL_STARWARS_URL='https://swapi.skyra.pw'
HASTEBIN_POST_URL='https://hastebin.skyra.pw'
HASTEBIN_GET_URL='https://hastebin.skyra.pw'

WEBHOOK_ERROR_ENABLED=true
WEBHOOK_ERROR_ID='648663047615021058'
WEBHOOK_ERROR_TOKEN=''

Expand All @@ -79,24 +77,17 @@ CRYPTOCOMPARE_TOKEN=''
DISCORD_BOT_LIST_TOKEN=''
DISCORD_BOTS_TOKEN=''
GOOGLE_API_TOKEN=''
GOOGLE_CUSTOM_SEARCH_IMAGE_TOKEN=''
GOOGLE_CUSTOM_SEARCH_WEB_TOKEN=''
GOOGLE_MAPS_API_TOKEN=''
KITSU_ID='AWQO5J657S'
KITSU_TOKEN='NzYxODA5NmY0ODRjYTRmMzQ2YjMzNzNmZmFhNjY5ZGRmYjZlMzViN2VkZDIzMGUwYjM5ZjQ5NjAwZGI4ZTc5MHJlc3RyaWN0SW5kaWNlcz1wcm9kdWN0aW9uX21lZGlhJmZpbHRlcnM9Tk9UK2FnZVJhdGluZyUzQVIxOA=='
NINTENDO_ID='U3B6GR4UA3'
NINTENDO_TOKEN='6efbfb0f8f80defc44895018caf77504'
NPM_SEARCH_ID='OFCNCOG2CU'
NPM_SEARCH_KEY='6fe4476ee5a1832882e326b506d14126'
OWLBOT_TOKEN=''
SENTRY_URL=''
THEMOVIEDATABASE_TOKEN=''
TIMEZONEDB_TOKEN=''
TOP_GG_TOKEN=''
TWITCH_CLIENT_ID=''
TWITCH_EVENTSUB_SECRET=''
TWITCH_TOKEN=''
WEBHOOK_DISCORDS_TOKEN=''
WEBHOOK_TOPGG_TOKEN=''
WEEB_SH_TOKEN=''
XIVAPI_TOKEN=''
3 changes: 1 addition & 2 deletions src/commands/Animal/bunny.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ const url = new URL('https://api.bunnies.io/v2/loop/random/?media=gif,png');
aliases: ['bunbun', 'rabbit'],
description: LanguageKeys.Commands.Animal.BunnyDescription,
detailedDescription: LanguageKeys.Commands.Animal.BunnyExtended,
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks],
spam: true
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks]
})
export class UserCommand extends SkyraCommand {
public async messageRun(message: Message, args: SkyraCommand.Args) {
Expand Down
3 changes: 1 addition & 2 deletions src/commands/Animal/catfact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import { join } from 'node:path';
aliases: ['kittenfact'],
description: LanguageKeys.Commands.Animal.CatfactDescription,
detailedDescription: LanguageKeys.Commands.Animal.CatfactExtended,
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks],
spam: true
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks]
})
export class UserCommand extends SkyraCommand {
private facts: readonly string[] = [];
Expand Down
3 changes: 1 addition & 2 deletions src/commands/Animal/dog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { Message, MessageEmbed } from 'discord.js';
aliases: ['doggo', 'puppy'],
description: LanguageKeys.Commands.Animal.DogDescription,
detailedDescription: LanguageKeys.Commands.Animal.DogExtended,
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks],
spam: true
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks]
})
export class UserCommand extends SkyraCommand {
public async messageRun(message: Message) {
Expand Down
3 changes: 1 addition & 2 deletions src/commands/Animal/fox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ const url = new URL('https://randomfox.ca/floof');
@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Animal.FoxDescription,
detailedDescription: LanguageKeys.Commands.Animal.FoxExtended,
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks],
spam: true
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks]
})
export class UserCommand extends SkyraCommand {
public async messageRun(message: Message) {
Expand Down
3 changes: 1 addition & 2 deletions src/commands/Animal/kitty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import { Message, MessageEmbed } from 'discord.js';
aliases: ['kitten', 'cat'],
description: LanguageKeys.Commands.Animal.KittyDescription,
detailedDescription: LanguageKeys.Commands.Animal.KittyExtended,
requiredClientPermissions: [PermissionFlagsBits.AttachFiles, PermissionFlagsBits.EmbedLinks],
spam: true
requiredClientPermissions: [PermissionFlagsBits.AttachFiles, PermissionFlagsBits.EmbedLinks]
})
export class UserCommand extends SkyraCommand {
public async messageRun(message: Message) {
Expand Down
3 changes: 1 addition & 2 deletions src/commands/Animal/shibe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { Message, MessageEmbed } from 'discord.js';
@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Animal.ShibeDescription,
detailedDescription: LanguageKeys.Commands.Animal.ShibeExtended,
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks],
spam: true
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks]
})
export class UserCommand extends SkyraCommand {
public async messageRun(message: Message) {
Expand Down
141 changes: 0 additions & 141 deletions src/commands/Announcement/announcement.ts

This file was deleted.

40 changes: 0 additions & 40 deletions src/commands/Announcement/subscribe.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/commands/Announcement/unsubscribe.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/commands/Birthday/reset-birthday.ts

This file was deleted.

Loading

0 comments on commit 569de41

Please sign in to comment.