diff --git a/README.md b/README.md index 655b860..235a034 100644 --- a/README.md +++ b/README.md @@ -1 +1,131 @@ -# DBRewrite \ No newline at end of file +[![Patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://www.patreon.com/drunkbartender) +[![Discord](https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.com/invite/pY6hNVs) +[![Github](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/shadow6060/DBRewrite) +[![Typescript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/) +[![Website](https://img.shields.io/badge/-Website-orange?style=for-the-badge&?logo=data:svg/.cb68e22690353106edebbee6d4ac3f52%20%7B%0A%09background-image%3A%20url(data%3Aimage%2Fsvg%3Bbase64%2CPHN2ZyB2ZXJzaW9uPSIxLjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEyOC4wMDAwMDBwdCIgaGVpZ2h0PSIxMjguMDAwMDAwcHQiIHZpZXdCb3g9IjAgMCAxMjguMDAwMDAwIDEyOC4wMDAwMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuMDAwMDAwLDEyOC4wMDAwMDApIHNjYWxlKDAuMTAwMDAwLC0wLjEwMDAwMCkiZmlsbD0iIzAwMDAwMCIgc3Ryb2tlPSJub25lIj48cGF0aCBkPSJNMjA0IDg4MiBjNiAtOSAxIC0xMSAtMTggLTggLTE4IDMgLTI2IDAgLTI2IC0xMCAwIC04IDYgLTE0IDE0IC0xNDggMCAxMyAtOCAxMiAtMTcgLTEgLTEyIDcgLTE5IDI0IC0yMCAxNCAtMSAxOCAwIDggMyAtMjkgOSAtMjEgMjMgMTcgMzAgMzkgNzQ4IDI0IDEyIDI0IC0xMyA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TE2IDEwIC02IDAtNyAtNCAtNCAtMTB6Ii8%2BPC9nPjwvc3ZnPg%3D%3D)%3B%0A%7D%0A)](https://drunk-bartender.org) + +

+ +

+ +

Drunk Bartender

+
+

❓ What is Drunk Bartender

+
+Drunk bartender is a bot that was created in August of 2019, + +We are a part of an independent group of developers who have been working on this for the longest time with the same original team as in the beginning We have some commands and recently moved over to Slash Commands to follow Discord Requirements to continue operating and work with most other bots that follow it, and we are currently working on moving into Discord.js v14 + +We can also be reached at anytime and we we have always worked hard on providing premium support to anyone who reaches out to us as that is the most important to us as your time is valuable so we do our best to make your experience the best so you can have more enjoyment with your time with us that is what keeps us going with this project and will always work our hardest to bring you the best new features we can and bring more fun commands + +And we are always open to hearing suggestions from the community about new features and love to hear your feedback on things we are glad that you have decided to spend some time with us as that is really important to us and if you want you also get to know us as most of our dms are open and are always ready to answer any questions +
+

ℹ Commands

+ +| Commands | Usage | Permissions | +| :--- | :---: | ---: | +| /balance | Gets a user's balance. | Global 🌐 | +| /work | Work to get money. | Global 🌐 | +| /crime | Commit a crime for money. | Global 🌐 | +| /daily | Gets money daily. | Global 🌐 | +| /order | Orders a drink. | Global 🌐 | +| /tip | Tip's a bartender. | Global 🌐 | +| /status | Gets the status of an order. | Global 🌐 | +| /cancel | Cancel's an order. | Global 🌐 | +| /feedback | Sends a feedback. | Global 🌐 | +| /doggo | Cute images of dogs. | Global 🌐 | +| /goose | Cool images of goose. | Global 🌐 | +| /meow | Wow images of cats. | Global 🌐 | +| /memes | Get some very funny memes. | Global 🌐 | +| /pat | Pat someone. | Global 🌐 | +| /tickle | Tickle your friends. | Global 🌐 | +| /hug | Give someone a big old hug. | Global 🌐 | +| /slap | Slap a very naughty person. | Global 🌐 | +| /status | Get a status of your order. | Global 🌐 | +| /blacklist | Blacklist's a user. | Admin 🛠 | +| /unblacklist | Unblacklist's a user. | Admin 🛠 | +| /list | List's all available orders. | Staff 🛠 | +| /claim | Claim's a user's order. | Staff 🛠 | +| /unclaim | Unclaim's a user's order. | Staff 🛠 | +| /fetch | Fetches the status of an order. | Staff 🛠 | +| /duty | Gives the on-duty role. | Staff 🛠 | +| /deliverymessage set | Sets a delivery message. | Staff 🛠 | +| /deliverymessage fetch | Gets your delivery message. | Staff 🛠 | +| /deliverymessage placeholders | Gets your delivery message placeholders. | Staff 🛠 | +| /brew | Brew's an order. | Staff 🛠 | +| /delete | Delete's a order. | Staff 🛠 | +  +  +

â„šī¸ Installation

+ +Make sure you got Node.js +And the following packages. + + - @discordjs/builders + - @discordjs/rest + - @prisma/client + - cross-env + - discord-api-types + - discord.js + - fast-glob + - got + - hjson + - nekos.life + - pincolors + - pino + - pretty-ms + - source-map-support + - typescript + - typescript-memoize + - yarn + - zod + - ts-toolbelt + - prisma + - eslint + + Once you got all these then you can finally start with setting up your database. + It has to be with postgres unless you want to switch it to another type. + But keep in mind then we can't provide you with support. + +You will have to make the postgres database yourself and connect the bot to it. +The tables will be made by the bot. + + +If you do not know how to create a bot. +Then follow these steps. + + 1. Go to https://discord.com/developers/applications + 2. Click on New Application + 3. And create a name for the Application + 4. Then click on "Bot" + 5. And click on "Add Bot" + 6. Then click on "Reset Token" + 7. Copy the token and place it into the config.hjson in the config folder. + + +Then you want to open a terminal and run tsc. +And then proceed to open the dist folder and start the bot by running + + node index.js + + then if that brings you some errors then + you can always contact us for support. + But if you got the database up and running. + Then this should work if you follow these steps. + But make sure you change the configs for roles, and channels. + So you can use it in your server! + and experience all the fun with your friends. +But some of the channel configs are in the employee commands. +## + +
+

Contributors ✨

+ +## + +
+
+
+

🔗 Links

+ +[GitHub](https://github.com/shadow6060/DBRewrite) | [Website](https://drunk-bartender.org) | [Patreon](https://www.patreon.com/drunkbartender)| [Discord](https://discord.gg/pY6hNVs) | [Appeals](https://www.drunk-bartender.org/Appeals) diff --git a/src/commands/Devs/policy.ts b/src/commands/Devs/policy.ts new file mode 100644 index 0000000..7d48a0d --- /dev/null +++ b/src/commands/Devs/policy.ts @@ -0,0 +1,12 @@ +import { development } from "./../../providers/env"; +import { execSync } from "child_process"; +import { format } from "../../utils/string"; +import { transpile } from "typescript"; +import { permissions } from "../../providers/permissions"; +import { Command } from "../../structures/Command"; +import { client } from "../../providers/client"; +import { channel } from "diagnostics_channel"; +export const command = new Command("policy", "Gives you a link to our policy.") + .setExecutor(async int => { + int.channel.send("https://drunk-bartender.org/Policy"); + }); \ No newline at end of file diff --git a/src/commands/Devs/terms.ts b/src/commands/Devs/terms.ts new file mode 100644 index 0000000..6a17749 --- /dev/null +++ b/src/commands/Devs/terms.ts @@ -0,0 +1,12 @@ +import { development } from "./../../providers/env"; +import { execSync } from "child_process"; +import { format } from "../../utils/string"; +import { transpile } from "typescript"; +import { permissions } from "../../providers/permissions"; +import { Command } from "../../structures/Command"; +import { client } from "../../providers/client"; +import { channel } from "diagnostics_channel"; +export const command = new Command("tos", "Gives you a link to our tos.") + .setExecutor(async int => { + int.channel.send("https://drunk-bartender.org/Terms_of_Service"); + }); \ No newline at end of file