index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>Discord Music Bot</title>
  8. <link rel="shortcut icon" href="/logo.gif" type="image/gif" />
  9. <link
  10. href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css"
  11. rel="stylesheet"
  12. integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6"
  13. crossorigin="anonymous"
  14. />
  15. <link
  16. rel="stylesheet"
  17. href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css"
  18. />
  19. <link
  20. rel="stylesheet"
  21. href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/fontawesome.min.css"
  22. />
  23. </head>
  24. <body>
  25. <section class="main">
  26. <!-- Navbar -->
  27. <nav class="navbar navbar-dark bg-dark">
  28. <div class="container-fluid">
  29. <a class="navbar-brand" href="#">
  30. <img
  31. src="/logo.gif"
  32. alt="Music Bot Logo"
  33. width="30"
  34. height="30"
  35. class="d-inline-block align-text-top"
  36. />
  37. Discord Music Bot
  38. </a>
  39. <button
  40. class="navbar-toggler"
  41. type="button"
  42. data-bs-toggle="collapse"
  43. data-bs-target="#navbarText"
  44. aria-controls="navbarText"
  45. aria-expanded="false"
  46. aria-label="Toggle navigation"
  47. >
  48. <span class="navbar-toggler-icon"></span>
  49. </button>
  50. <div class="d-flex nav-links">
  51. <div class="d-flex justify-content-center">
  52. <a class="nav-link active" aria-current="page" href="/">Home</a>
  53. <a class="nav-link" href="#features">Features</a>
  54. <a class="nav-link" href="#commands">Commands</a>
  55. </div>
  56. <a
  57. href="/dashboard"
  58. class="btn btn-outline-success me-2"
  59. type="button"
  60. >
  61. Dashboard
  62. </a>
  63. </div>
  64. <div class="collapse navbar-collapse" id="navbarText">
  65. <ul class="navbar-nav me-auto mb-2 mb-lg-0">
  66. <li class="nav-item">
  67. <a class="nav-link active" aria-current="page" href="/">Home</a>
  68. </li>
  69. <li class="nav-item">
  70. <a class="nav-link" href="#features">Features</a>
  71. </li>
  72. <li class="nav-item">
  73. <a class="nav-link" href="#commands">Commands</a>
  74. </li>
  75. </ul>
  76. </div>
  77. </div>
  78. </nav>
  79. <!-- End Navbar -->
  80. <!-- Hero entry 👌 -->
  81. <div class="hero">
  82. <div id="hero" class="text-center">
  83. <h1>Discord Music Bot</h1>
  84. <p>
  85. An advanced discord music bot, supports Spotify, Soundcloud, YouTube
  86. with Shuffling, Volume Control and Web Dashboard!
  87. </p>
  88. </div>
  89. </div>
  90. <!-- End Hero -->
  91. <!-- Features -->
  92. <div id="features" class="section-features">
  93. <div class="container">
  94. <div class="row justify-content-center text-center">
  95. <div class="col-md-10 col-lg-8">
  96. <div class="header-section">
  97. <h2 class="title">Exclusive <span>Features</span></h2>
  98. <p class="description">
  99. There are many Features in discord music bot! Every awesome
  100. features of this bot has been descirbed below check it out 😉
  101. </p>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="row">
  106. <div class="col-md-6 col-lg-4">
  107. <div class="single-service">
  108. <div class="part-1">
  109. <i class="fab fa-spotify"></i>
  110. <h3 class="title">Spotify, Sound Cloud, YouTube Support</h3>
  111. </div>
  112. <div class="part-2">
  113. <p class="description">
  114. Use your spotify playlist, youtube videos, yotube playlists
  115. and much more using this bot
  116. </p>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="col-md-6 col-lg-4">
  121. <div class="single-service">
  122. <div class="part-1">
  123. <i class="fas fa-music"></i>
  124. <h3 class="title">Lag free music</h3>
  125. </div>
  126. <div class="part-2">
  127. <p class="description">
  128. Bot never lags while playing a song in a voice channel
  129. </p>
  130. </div>
  131. </div>
  132. </div>
  133. <div class="col-md-6 col-lg-4">
  134. <div class="single-service">
  135. <div class="part-1">
  136. <i class="fas fa-sliders-h"></i>
  137. <h3 class="title">Server Settings</h3>
  138. </div>
  139. <div class="part-2">
  140. <p class="description">
  141. Control your song looping song or queue, You can even change
  142. server prefix and server dj role
  143. </p>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <!-- End Features -->
  151. <!-- Commands -->
  152. <div class="commands" id="commands">
  153. <div class="container">
  154. <h2 class="title text-center">Commands</h2>
  155. <table class="table table-dark">
  156. <thead>
  157. <tr>
  158. <th scope="col">Command</th>
  159. <th scope="col">Aliases</th>
  160. <th scope="col">Usage</th>
  161. <th scope="col">Description</th>
  162. </tr>
  163. </thead>
  164. <tbody id="commands-body"></tbody>
  165. </table>
  166. </div>
  167. </div>
  168. <!-- End Commands -->
  169. <!-- Footer -->
  170. <div class="footer">
  171. <div class="container">
  172. <div class="row">
  173. <div class="col-md-12">
  174. <div class="copyright-text">
  175. <p>
  176. © 2021
  177. <a href="//github.com/SudhanPlayz/Discord-MusicBot"
  178. >Discord Music Bot</a
  179. >. All rights reserved. Made by
  180. <a href="//github.com/SudhanPlayz">Sudhan</a> and its
  181. <a
  182. href="//github.com/SudhanPlayz/Discord-MusicBot/graphs/contributors"
  183. >contributers</a
  184. >
  185. </p>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. <!-- End Footer -->
  192. </section>
  193. <script
  194. src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"
  195. integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
  196. crossorigin="anonymous"
  197. ></script>
  198. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  199. </body>
  200. <style>
  201. body {
  202. background: var(--bs-gray-dark);
  203. color: #fff;
  204. }
  205. .navbar-toggler {
  206. display: none;
  207. }
  208. .hero {
  209. margin-top: 5%;
  210. }
  211. .commands {
  212. margin-top: 100px;
  213. }
  214. .commands .title {
  215. position: relative;
  216. margin-bottom: 40px;
  217. padding-bottom: 25px;
  218. text-transform: uppercase;
  219. font-weight: 700;
  220. color: white;
  221. }
  222. .commands .title:before {
  223. content: "";
  224. position: absolute;
  225. bottom: 0;
  226. left: 50%;
  227. transform: translateX(-50%);
  228. width: 140px;
  229. height: 1px;
  230. background-color: #f70037;
  231. }
  232. .commands .title:after {
  233. content: "";
  234. position: absolute;
  235. bottom: -1px;
  236. left: 50%;
  237. transform: translateX(-50%);
  238. width: 45px;
  239. height: 3px;
  240. background-color: #f70037;
  241. }
  242. @media only screen and (max-width: 630px) {
  243. .navbar-toggler {
  244. display: inherit;
  245. }
  246. .nav-links {
  247. display: none !important;
  248. }
  249. }
  250. #features {
  251. margin-top: 100px;
  252. }
  253. .section-features {
  254. padding-top: 110px;
  255. padding-bottom: 120px;
  256. background-color: #211f24;
  257. color: #fff;
  258. }
  259. .section-features .header-section {
  260. margin-bottom: 35px;
  261. }
  262. .section-features .header-section .title {
  263. position: relative;
  264. margin-bottom: 40px;
  265. padding-bottom: 25px;
  266. text-transform: uppercase;
  267. font-weight: 700;
  268. }
  269. .section-features .header-section .title:before {
  270. content: "";
  271. position: absolute;
  272. bottom: 0;
  273. left: 50%;
  274. transform: translateX(-50%);
  275. width: 140px;
  276. height: 1px;
  277. background-color: #f70037;
  278. }
  279. .section-features .header-section .title:after {
  280. content: "";
  281. position: absolute;
  282. bottom: -1px;
  283. left: 50%;
  284. transform: translateX(-50%);
  285. width: 45px;
  286. height: 3px;
  287. background-color: #f70037;
  288. }
  289. .section-features .header-section .title span {
  290. color: #f70037;
  291. }
  292. .section-features .header-section .description {
  293. color: #6f6f71;
  294. }
  295. .section-features .single-service {
  296. margin-top: 40px;
  297. background-color: #24252a;
  298. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  299. }
  300. .section-features .single-service .part-1 {
  301. padding: 40px 40px 25px;
  302. border-bottom: 2px solid #1d1e23;
  303. }
  304. .section-features .single-service .part-1 i {
  305. margin-bottom: 25px;
  306. font-size: 50px;
  307. color: #f70037;
  308. }
  309. .section-features .single-service .part-1 .title {
  310. font-size: 17px;
  311. font-weight: 700;
  312. letter-spacing: 0.02em;
  313. line-height: 1.8em;
  314. }
  315. .section-features .single-service .part-2 {
  316. padding: 30px 40px 40px;
  317. }
  318. .section-features .single-service .part-2 .description {
  319. margin-bottom: 22px;
  320. color: #6f6f71;
  321. font-size: 14px;
  322. line-height: 1.8em;
  323. }
  324. .section-features .single-service .part-2 a {
  325. color: #fff;
  326. font-size: 14px;
  327. text-decoration: none;
  328. }
  329. .section-features .single-service .part-2 a i {
  330. margin-right: 10px;
  331. color: #f70037;
  332. }
  333. .footer {
  334. background: #192027;
  335. text-align: center;
  336. padding: 32px 0;
  337. }
  338. .footer p {
  339. margin: 0;
  340. line-height: 26px;
  341. font-size: 15px;
  342. color: #999;
  343. }
  344. .footer p a {
  345. color: #5867dd;
  346. text-decoration: none;
  347. }
  348. .footer p a:hover {
  349. color: #34bfa3;
  350. }
  351. ::-webkit-scrollbar {
  352. width: 15px;
  353. }
  354. ::-webkit-scrollbar-track {
  355. background: #192027;
  356. }
  357. ::-webkit-scrollbar-thumb {
  358. background: #5867dd;
  359. border-radius: 20px;
  360. }
  361. ::-webkit-scrollbar-thumb:hover {
  362. background: #414ca1;
  363. }
  364. </style>
  365. <script>
  366. $(document).ready(() => {
  367. $.get("/api/info", (data) => {
  368. //check api/routes.js
  369. let url = `https://discord.com/oauth2/authorize?client_id=${
  370. data.ClientID
  371. }&permissions=${data.Permissions}&scope=bot%20${data.Scopes.join(
  372. "%20"
  373. )}&redirect_uri=${data.Website}${data.CallbackURL}&response_type=code`;
  374. $("#hero")
  375. .append(`<a href="${url}" class="btn btn-primary" type="button">Invite</a>
  376. <a href="/dashboard" class="btn btn-outline-primary" type="button">Dashboard</a>`);
  377. });
  378. $.get("/api/commands", (data) => {
  379. //same as above check it :eyes:
  380. data.commands.forEach((cmd) => {
  381. $("#commands-body").append(`
  382. <tr>
  383. <th scope="row">${cmd.name}</th>
  384. <td>${cmd.aliases ? cmd.aliases.join(", ") : "None"}</td>
  385. <td>${cmd.usage ? cmd.usage : "None"}</td>
  386. <td>${cmd.description ? cmd.description : "None"}</td>
  387. </tr>
  388. `);
  389. });
  390. });
  391. });
  392. </script>
  393. </html>