Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (command === 'help') {
- var helptext = ''
- const term = args[0]
- if (!term) {
- message.reply('Please give me a help term. Provided terms are: Utility, Fun, Nsfw, Moderation, Admin and Other')
- return;
- }
- switch (term.toLowerCase()) {
- case 'utility':
- helptext = 'Help - The help message\nAvatar (user) - The users avatar\nImage (search term) - Looks up a image search term\nGoogle (search term) - Googles for the search term\nWeather (city) - Looks up weather for the provided region\nForecast (city) - Looks up the forecast for the provided region\nPing - Looks up the current internet delay\nDblinfo (bot mention // id) - Looks up info on the discord bot list servers to this bot\nUserinfo (user) - Looks up userinfo for the user\nScanweb (URL) - Looks up on multiple drivers if the provided URL could be malicious\nQr (text // URL) - Makes a QR code for provided text\n'
- break;
- case 'fun':
- helptext = 'Slap (user) - Slaps a user for you\nSay (message) [-del] [-e] - Says the said message with additional flags\nRollthedice - 50 - 50 chanche you win\nSlap (user) - Slaps a user for you\nOwOify (sentence) - OwOifies the sentence you provided, If you dont know what that means try it out!\n8ball (question) - Asks the allmighty 8ball about your question\n'
- break;
- case 'nsfw':
- helptext = 'Google (search term) - Googles any image you want and bypasses the filter made for it in non nsfw channels\nNsfwavatar - Looks up a random NSFW-releated avatar on the web\nHentai - Sends a random Hentai image in the chat\nPorn (search term) - Looks up a random porn gif on PornHub'
- break;
- case 'other':
- helptext = 'Checkblacklist (user) - Looks if the user mentioned is blacklisted\nServercount - Looks up in how many servers i am in (not the names and ids just the count)\nInvites - All important invites for the bot such as the bot himself, the testing server and so on\nReport (problem) - (also accessable in dms with "! problem") Reports a issue about the bot to the owner (me)'
- break;
- case 'admin':
- helptext = 'Setprefix (new prefix) - Sets the prefix in your guild to the provided word / sentence\nWelcomechannel (channelmention) - Sets the channel for welcome and Bye messages\nCommandlock (command without prefix for example "porn") - Locks the use of a command\nCommandunlock (command without prefix for example "porn") - Unlocks the lock ^\nKick (user) [reason] - Kicks the user with additional reason'
- break;
- default:
- message.channel.send('This isnt a search term for the help command!')
- return;
- }
- const embed = new Discord.MessageEmbed()
- .setColor('#0FFFFF')
- .setTitle(`Helptext from bot ${client.user.tag}!`)
- .setDescription(helptext)
- .setAuthor(message.author.username, message.author.avatarURL())
- message.channel.send(embed);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement