-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add swapfile and epic web dev support emoji
- Loading branch information
1 parent
75f5d6b
commit 86f2adb
Showing
6 changed files
with
251 additions
and
35 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 |
---|---|---|
|
@@ -23,6 +23,7 @@ const reactions: Record<string, ReactionFn> = { | |
botcall: callKent, | ||
bottjssupport: tjssupport, | ||
boterdsupport: erdsupport, | ||
botewdsupport: ewdsupport, | ||
} as const | ||
|
||
async function help(messageReaction: Discord.MessageReaction) { | ||
|
@@ -241,4 +242,15 @@ async function erdsupport(messageReaction: Discord.MessageReaction) { | |
} | ||
erdsupport.description = `Replies to the message telling the user to email EpicReact.dev support.` | ||
|
||
async function ewdsupport(messageReaction: Discord.MessageReaction) { | ||
void messageReaction.remove() | ||
const { channel, author, guild } = messageReaction.message | ||
if (!guild || !channel || !author) return | ||
|
||
await messageReaction.message.reply( | ||
`For support with EpicWeb.dev, please email [email protected]. Thanks!`, | ||
) | ||
} | ||
ewdsupport.description = `Replies to the message telling the user to email EpicWeb.dev support.` | ||
|
||
export default reactions |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 @@ | ||
#!/usr/bin/env node | ||
|
||
import { writeFile } from 'node:fs/promises' | ||
import { $ } from 'execa' | ||
|
||
console.log('setting up swapfile...') | ||
await $`fallocate -l 256M /swapfile` | ||
await $`chmod 0600 /swapfile` | ||
await $`mkswap /swapfile` | ||
await writeFile('/proc/sys/vm/swappiness', '10') | ||
await $`swapon /swapfile` | ||
await writeFile('/proc/sys/vm/overcommit_memory', '1') | ||
console.log('swapfile setup complete') |
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