-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
206 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,27 +15,30 @@ | |
"type": "git", | ||
"url": "git+https://github.com/josholaus/doofus-rick.git" | ||
}, | ||
"author": "", | ||
"contributors": [ | ||
"Joshua Winkler <[email protected]>", | ||
"Nicolaus Rossi <[email protected]>" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/josholaus/doofus-rick/issues" | ||
}, | ||
"homepage": "https://github.com/josholaus/doofus-rick#readme", | ||
"devDependencies": { | ||
"@discordjs/rest": "^1.7.1", | ||
"@types/node": "^20.2.3", | ||
"@types/node-cron": "^3.0.7", | ||
"nodemon": "^2.0.22", | ||
"prettier": "^2.8.8", | ||
"@discordjs/rest": "^2.0.0", | ||
"@types/node": "^20.4.5", | ||
"@types/node-cron": "^3.0.8", | ||
"nodemon": "^3.0.1", | ||
"prettier": "^3.0.0", | ||
"rimraf": "^5.0.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.4" | ||
"typescript": "^5.1.6" | ||
}, | ||
"dependencies": { | ||
"discord.js": "^14.11.0", | ||
"dotenv": "^16.0.3", | ||
"discord.js": "^14.12.1", | ||
"dotenv": "^16.3.1", | ||
"log4js": "^6.9.1", | ||
"mongodb": "^5.5.0", | ||
"mongodb": "^5.7.0", | ||
"node-cron": "^3.0.2", | ||
"uuid": "^9.0.0" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { CacheType, CommandInteraction, TextChannel } from 'discord.js' | ||
import { ICommand } from './ICommand' | ||
|
||
const allowedUsers = ['155046312411267072', '275342581821603842'] | ||
|
||
export default class SendChannelCommand implements ICommand { | ||
async execute(interaction: CommandInteraction<CacheType>): Promise<void> { | ||
if (!allowedUsers.includes(interaction.member?.user.id ?? 'null')) { | ||
await interaction.reply({ content: 'des deafst du ned du santla', ephemeral: true }) | ||
return | ||
} | ||
const target = interaction.options.get('channel') | ||
const message = interaction.options.get('message')?.value | ||
if (target && message) { | ||
try { | ||
const channel = interaction.guild?.channels.cache.find(c => c.id === target.value) | ||
if (!channel) throw {} | ||
if (!(channel instanceof TextChannel)) throw {} | ||
await (channel as TextChannel).send(message as string) | ||
await interaction.reply({ content: 'ok', ephemeral: true }) | ||
} catch (_) { | ||
await interaction.reply({ content: 'gehd ned', ephemeral: true }) | ||
} | ||
} else { | ||
await interaction.reply({ content: 'tua normal', ephemeral: true }) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
export { default as NoProductiveCommand } from './NoProductiveCommand' | ||
export { default as PingCommand } from './PingCommand' | ||
export { default as VitalsCommand } from './VitalsCommand' | ||
export { default as QuoteCommand } from './QuoteCommand' | ||
export { default as RandomQuoteCommand } from './RandomQuoteCommand' | ||
export { default as VotekickCommand } from './VotekickCommand' | ||
export { default as NoProductiveCommand } from './NoProductiveCommand' | ||
export { default as ChuenCommand } from './ChuenCommand' | ||
export { default as SendChannelCommand } from './SendChannelCommand' | ||
export { default as SendCommand } from './SendCommand' | ||
export { default as VitalsCommand } from './VitalsCommand' | ||
export { default as VotekickCommand } from './VotekickCommand' | ||
|
Oops, something went wrong.