Download pool/shard005/JavaScript/0031226_reboot.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard005/JavaScript/0031226_reboot.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard005/JavaScript/0031226_reboot.js
-
curl -L -o 0031226_reboot.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard005/JavaScript/0031226_reboot.js
427 Bytes
| const bot = require('../bot') | |
| module.exports = { | |
| description: 'Reboots the bot. Must have privileges to execute.', | |
| discrete: true, | |
| process: async msg => { | |
| if (await bot.checkRole(msg, ['Head Scribe', 'Elder'])) { | |
| await msg.channel.send('*Beep boop, click*') | |
| await console.log('Being shut down by ' + msg.author.username) | |
| process.exit() | |
| } else { | |
| bot.reject(msg) | |
| } | |
| } | |
| } | |