Advertisement
Nimbi

dbd dashbaord

Feb 6th, 2022 (edited)
960
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. * --- DISCORD.JS CLIENT --- */
  2.  
  3. import * as data from '../config.json'
  4. const { Client, Intents } = require('discord.js');
  5. const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
  6.  
  7. const DarkDashboard = require('dbd-dark-dashboard');
  8.  
  9. /* --- DASHBOARD --- */
  10. (async () => {
  11.   let DBD = require('discord-dashboard');
  12.   await DBD.useLicense(data.dbd_license);
  13.   DBD.Dashboard = DBD.UpdatedClass();
  14.  
  15.   const Dashboard = new DBD.Dashboard({
  16.     port: 80,
  17.     client: {
  18.       id: data.client_id,
  19.       secret: data.token
  20.     },
  21.     redirectUri: 'http://localhost/discord/callback',
  22.     domain: 'http://localhost',
  23.     requiredPermissions: [DBD.DISCORD_FLAGS.Permissions.MANAGE_GUILD],
  24.     bot: client,
  25.     theme: DarkDashboard({
  26.       information: {
  27.         createdBy: "galnir",
  28.         websiteTitle: "Dashboard",
  29.         websiteName: "Master Bot",
  30.         dashboardUrl: "http://localhost:3000/",
  31.         imageFavicon: "https://www.imidnight.ml/assets/img/logo-circular.png",
  32.         iconURL: "https://www.imidnight.ml/assets/img/logo-circular.png",
  33.         pageBackGround: "linear-gradient(#2CA8FF, #155b8d)",
  34.         loggedIn: "Successfully signed in.",
  35.         mainColor: "#2CA8FF",
  36.         subColor: "#ebdbdb",
  37.       },
  38.       index: {
  39.         card: {
  40.           category: "Master Bot Dashboard - The center of everything",
  41.           title: `Welcome to the Master Bot Dashboard where you can control the core features to the bot.`,
  42.           image: "https://i.imgur.com/axnP93g.png",
  43.           footer: "galnir/Master-Bot"
  44.         },
  45.         information: {
  46.           category: "Category",
  47.           title: "Information",
  48.           description: `This bot and dashboard are in active development.\nIf you have any issues, head on over to our github and fill out a bug report.`,
  49.           footer: "galnir/Master-Bot"
  50.         },
  51.       },
  52.       commands: [
  53.         {
  54.           category: "Commands",
  55.           subTitle: "All Master Bot commands",
  56.           aliasesDisabled: false,
  57.           list: [
  58.             {
  59.               commandName: "play",
  60.               commandUsage: "/play darude sandstorm",
  61.               commandDescription: "Play any song or playlist from youtube, you can do it by searching for a song by name or song url or playlist url",
  62.               commandAlias: "None"
  63.             },
  64.             {
  65.               commandName: "pause",
  66.               commandUsage: "/pause",
  67.               commandDescription: "Pause the current playing song",
  68.               commandAlias: "None"
  69.             },
  70.             {
  71.               commandName: "resume",
  72.               commandUsage: "/resume",
  73.               commandDescription: "Resume the current paused song",
  74.               commandAlias: "None"
  75.             },
  76.             {
  77.               commandName: "leave",
  78.               commandUsage: "/leave",
  79.               commandDescription: "Leaves the voice channel if in one",
  80.               commandAlias: "None"
  81.             },
  82.             {
  83.               commandName: "remove",
  84.               commandUsage: "/remove 4",
  85.               commandDescription: "Remove a specific song from the queue by it's number in the queue",
  86.               commandAlias: "None"
  87.             },
  88.             {
  89.               commandName: "queue",
  90.               commandUsage: "/queue",
  91.               commandDescription: "Display the song queue",
  92.               commandAlias: "None"
  93.             },
  94.             {
  95.               commandName: "shuffle",
  96.               commandUsage: "/shuffle",
  97.               commandDescription: "Shuffle the song queue",
  98.               commandAlias: "None"
  99.             },
  100.             {
  101.               commandName: "skip",
  102.               commandUsage: "/skip",
  103.               commandDescription: "Skip the currently playing song",
  104.               commandAlias: "None"
  105.             },
  106.             {
  107.               commandName: "skip all",
  108.               commandUsage: "/skipall",
  109.               commandDescription: "Skip all songs in the queue",
  110.               commandAlias: "None"
  111.             },
  112.             {
  113.               commandName: "skip to",
  114.               commandUsage: "/akipto 5",
  115.               commandDescription: "Skip to a specific song in the queue, provide the song number as an argument",
  116.               commandAlias: "None"
  117.             },
  118.             {
  119.               commandName: "volume",
  120.               commandUsage: "/volume 80",
  121.               commandDescription: "Adjust the song volume",
  122.               commandAlias: "None"
  123.             },
  124.             {
  125.               commandName: "music trivia",
  126.               commandUsage: "/music-trivia",
  127.               commandDescription: "Engage in music trivia with your friends. You can add more songs to the trivia pool in resources/music/musictrivia.json",
  128.               commandAlias: "None"
  129.             },
  130.             {
  131.               commandName: "loop",
  132.               commandUsage: "/loop",
  133.               commandDescription: "Loop the currently playing song or queue",
  134.               commandAlias: "None"
  135.             },
  136.             {
  137.               commandName: "lyrics",
  138.               commandUsage: "/lyrics song-name",
  139.               commandDescription: "Get the lyrics of any song or the lyrics of the currently playing song",
  140.               commandAlias: "None"
  141.             },
  142.             {
  143.               commandName: "now playing",
  144.               commandUsage: "/now-playing",
  145.               commandDescription: "Display the currently playing sonh with a playback bar",
  146.               commandAlias: "None"
  147.             },
  148.             {
  149.               commandName: "move",
  150.               commandUsage: "/move 8 1",
  151.               commandDescription: "Move a song to a desired position in the queue",
  152.               commandAlias: "None"
  153.             },
  154.             {
  155.               commandName: "queue history",
  156.               commandUsage: "/queue-history",
  157.               commandDescription: "Display the queue history",
  158.               commandAlias: "None"
  159.             },
  160.             {
  161.               commandName: "cat",
  162.               commandUsage: "/cat",
  163.               commandDescription: "Display a random cat gif",
  164.               commandAlias: "None",
  165.             },
  166.             {
  167.               commandName: "dog",
  168.               commandUsage: "/dog",
  169.               commandDescription: "Display a random dog gif",
  170.               commandAlias: "None",
  171.             },
  172.             {
  173.               commandName: "anime",
  174.               commandUsage: "/anime",
  175.               commandDescription: "Display a random anime gif",
  176.               commandAlias: "None",
  177.             },
  178.             {
  179.               commandName: "baka",
  180.               commandUsage: "/baka",
  181.               commandDescription: "Display a random baka gif",
  182.               commandAlias: "None",
  183.             },
  184.             {
  185.               commandName: "jojo",
  186.               commandUsage: "/jojo",
  187.               commandDescription: "Display a random JoJo gif",
  188.               commandAlias: "None",
  189.             },
  190.             {
  191.               commandName: "gintama",
  192.               commandUsage: "/gintama",
  193.               commandDescription: "Display a random Gintama gif",
  194.               commandAlias: "None",
  195.             },
  196.             {
  197.               commandName: "gif",
  198.               commandUsage: "/gif",
  199.               commandDescription: "Display a random gif",
  200.               commandAlias: "None",
  201.             },
  202.             {
  203.               commandName: "fortune",
  204.               commandUsage: "/fortune",
  205.               commandDescription: "Get a fortune cookie tip",
  206.               commandAlias: "None",
  207.             },
  208.             {
  209.               commandName: "insult",
  210.               commandUsage: "/insult",
  211.               commandDescription: "Generate an evil insult",
  212.               commandAlias: "None",
  213.             },
  214.             {
  215.               commandName: "chuck norris",
  216.               commandUsage: "/chucknorris",
  217.               commandDescription: "Get a satirical fact about Chuck Norris",
  218.               commandAlias: "None",
  219.             },
  220.             {
  221.               commandName: "motivation",
  222.               commandUsage: "/motivation",
  223.               commandDescription: "Get a random motivational quote",
  224.               commandAlias: "None",
  225.             },
  226.             {
  227.               commandName: "world news",
  228.               commandUsage: "/world-news",
  229.               commandDescription: "Latest headlines.",
  230.               commandAlias: "None",
  231.             },
  232.             {
  233.               commandName: "random",
  234.               commandUsage: "/random 0 100",
  235.               commandDescription: "Generate a random number between two provided numbers",
  236.               commandAlias: "None",
  237.             },
  238.             {
  239.               commandName: "translate",
  240.               commandUsage: "/translate english ?????",
  241.               commandDescription: "Translate any language using Google Translate (Only supported languages)",
  242.               commandAlias: "None",
  243.             },
  244.             {
  245.               commandName: "about",
  246.               commandUsage: "/about",
  247.               commandDescription: "Information about Master Bot",
  248.               commandAlias: "None",
  249.             },
  250.             {
  251.               commandName: "8ball",
  252.               commandUsage: "/8ball Is this bot awesome?",
  253.               commandDescription: "Get the answer to anything",
  254.               commandAlias: "None",
  255.             },
  256.             {
  257.               commandName: "rcok paper scissors",
  258.               commandUsage: "/rps",
  259.               commandDescription: "Play Rock, Paper, Scissors!",
  260.               commandAlias: "None",
  261.             },
  262.             {
  263.               commandName: "bored",
  264.               commandUsage: "/bored",
  265.               commandDescription: "Generate a random activity!",
  266.               commandAlias: "None",
  267.             },
  268.             {
  269.               commandName: "advice",
  270.               commandUsage: "/advice",
  271.               commandDescription: "Get some advice",
  272.               commandAlias: "None",
  273.             },
  274.             {
  275.               commandName: "kanye",
  276.               commandUsage: "/kanye",
  277.               commandDescription: "Get a random Kanye quote",
  278.               commandAlias: "None",
  279.             },
  280.             {
  281.               commandName: "urban",
  282.               commandUsage: "/urban javascript",
  283.               commandDescription: "Get definitions from Urban Dictionary",
  284.               commandAlias: "None",
  285.             },],
  286.         },
  287.       ],
  288.     }),
  289.     settings: [
  290.       {
  291.         categoryId: 'setup',
  292.         categoryName: "Setup",
  293.         categoryDescription: "Setup your bot with default settings!",
  294.         categoryOptionsList: [
  295.           {
  296.             optionId: 'settings',
  297.             optionName: "Settings",
  298.             optionDescription: "Server Settings",
  299.             optionType: DBD.formTypes.switch(),
  300.             ggetActualSet: ({ }) => {
  301.               return;
  302.             },
  303.             setNew: async ({ }) => {
  304.               return;
  305.             },
  306.             allowedCheck: async ({ }) => {
  307.               return;
  308.             }
  309.           },
  310.         ]
  311.       },
  312.     ]
  313.   });
  314.  
  315.   Dashboard.init();
  316. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement