face-hh / discordmium

Discordmium brings the Chromium browser instance in Discord, of course limited to the Discord API. - Made for Documatic Hackathon
https://facedev.xyz
69 stars 17 forks source link

how to run the bot? #1

Closed epokuser closed 1 year ago

epokuser commented 1 year ago

i ran this in a cmd window on windows 10 npm i discordmium

then I do not know what to do, I have made the discord bot invited it to my server have it's token but what do I do after doing npm i discordmium i am lost

face-hh commented 1 year ago

Run this code: https://github.com/face-hh/discordmium#usage Make sure to replace the parameters accordingly.

epokuser commented 1 year ago

C:\Users\Lelkasa>node zbouncer.js C:\Users\Lelkasa\zbouncer.js:3 Browser(, <974363818543173692>) ^

SyntaxError: Unexpected token '<' at Object.compileFunction (node:vm:360:18) at wrapSafe (node:internal/modules/cjs/loader:1088:15) at Module._compile (node:internal/modules/cjs/loader:1123:27) at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) at Module._load (node:internal/modules/cjs/loader:878:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47

Node.js v18.12.1

epokuser commented 1 year ago

i even tried

const Browser = require('discordmium');

Browser(MTA1Nmytoeken, 974363818543173692) /* DiscordToken - Get it from Discord Developers Portal / /* GuildId - The guild that the command will be published at /

then saving the file as a zbouncer.js and running node zbouncer.js

face-hh commented 1 year ago

Please put the token and guild ID in quotes.

epokuser commented 1 year ago

Thank you! That solved my problem :D