Advertisement
Guest User

Untitled

a guest
May 29th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     Author: RLNT
  3.     Requested by: tomislav
  4.     License: MIT
  5.     Discord: https://discord.com/invite/Q3qxws6
  6. */
  7. registerPlugin(
  8.     {
  9.         name: 'Example',
  10.         version: '1.0.0',
  11.         description:
  12.             'Example',
  13.         author: 'Relentless',
  14.         backends: [ 'ts3' ],
  15.         vars: [
  16.             {
  17.                 name: 'channel',
  18.                 title: 'Just to show it',
  19.                 type: 'channel'
  20.             },
  21.             {
  22.                 name: 'isThisCool',
  23.                 title: 'Just to show it',
  24.                 type: 'select',
  25.                 options: [
  26.                     'Yes',
  27.                     'No'
  28.                 ]
  29.             },
  30.             {
  31.                 name: 'textSection',
  32.                 type: 'section',
  33.                 vars: [
  34.                     {
  35.                         name: 'phraseOnline',
  36.                         title: 'Online Phrase',
  37.                         type: 'string'
  38.                     },
  39.                     {
  40.                         name: 'phraseOffline',
  41.                         title: 'Offline Phrase',
  42.                         type: 'string'
  43.                     },
  44.                     {
  45.                         name: 'phrasePermission',
  46.                         title: 'Permission Phrase Phrase',
  47.                         type: 'string'
  48.                     }
  49.                 ]
  50.             }
  51.         ]
  52.     },
  53.     (_, { channel, cool, messages }) => {
  54.         // now you can use your messages here in an easy format like
  55.         const engine = require('engine');
  56.         engine.log(messages.phraseOnline)
  57.     }
  58. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement