diff --git a/.env b/.env index 067aabd..b03d4a0 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -DISCORD_TOKEN="MTEwODU5NTAxMTAyNjY4NjAwMg.Gp3hbU.-tZtx3Kb0gUBJbMBcCmw5J6gU3oOaVT_YTK1gA" \ No newline at end of file +DISCORD_TOKEN="MTEwODU5NTAxMTAyNjY4NjAwMg.G2g5tt.xtLkS81zUyE9CLfot7WbBKg0w0f5QqSvBhC_dI" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8fc181a..1c1dd40 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -*.ignore \ No newline at end of file +*.ignore +.env \ No newline at end of file diff --git a/README.md b/README.md index db0adbe..c16487e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # dicedicedice -A bot for metaphorically rolling dice/generating random values. Made for use with Weaverdice systems. +A bot for metaphorically "rolling dice"/generating random values. Made for use with Weaverdice systems. -### Features +## Features - Cool ez syntax blatantly copied from [rollem.rocks](https://rollem.rocks): > 2d6 - 1 @@ -24,3 +24,25 @@ A bot for metaphorically rolling dice/generating random values. Made for use wit > d6 - 4 - Command editing and recalculation! + + +Invite the bot by clicking [this link](https://discord.com/oauth2/authorize?client_id=1108595011026686002&permissions=3072&scope=bot) + +## Installation + +This is for self-hosting. Provided the bot is online you can add it to your server simply by clicking the link above. + +Yarn: +``` +git clone https://github.com/Dakedres/dicedicedice.git +yarn run init +``` +npm: +``` +git clone https://github.com/Dakedres/dicedicedice.git +npm i +cp template.env .env +``` + + +You will need to provide a token and place it in the .env file. \ No newline at end of file diff --git a/package.json b/package.json index 89442b5..1b41266 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,10 @@ "name": "dicedicedice", "version": "1.0.0", "main": "src/index.js", + "scripts": { + "start": "node .", + "init": "yarn install && cp template.env .env" + }, "author": "Dakedres", "license": "MIT", "private": true, diff --git a/template.env b/template.env new file mode 100644 index 0000000..9cc6489 --- /dev/null +++ b/template.env @@ -0,0 +1 @@ +DISCORD_TOKEN="token_here" \ No newline at end of file