redii / grepogod-wonders

A webscraper and discord-bot for the browsergame Grepolis to track world wonders
1 stars 0 forks source link

how to use #1

Open stamas1 opened 2 months ago

stamas1 commented 2 months ago

Can u make a readme.md and explain how to download/use this discord bot?

redii commented 2 months ago

Hey, i recently did a rewrite of this feature in this repo: https://github.com/redii/grepo-tools/

I didnt write a readme yet but i can provide one in the next few days... you try to get it running by looking at the config.example.json file. Mainly you have to extract the cookie data from your browser and paste it there, but i would recommend to not run this bot on your main account.

stamas1 commented 2 months ago

so i clone repo this the https://github.com/redii/grepo-tools/ and then what i do? I just learnt to use a discord bot with py that alerts you when u are attacked.There i had to copy some tokens and webhook on an .env file and just run the python .Is it the same here?

edit: i just downloaded bun and got the clone repo of grepo-tools now what i do?(The world wonders havent opened on my world)

redii commented 2 months ago

Can u send me the link to the discord bot you mentioned? So I can take a look at it...

I think that this tool works a bit different, because it uses your cookie that you have to export from your browser. How does the other discord bot accesses your accounts incoming attacks?

In my tool you don't use env variables, instead you have to create a config.json file in the root directory of the repo which looks like the config.example.json file.

Then you will have to fill out all required data (world, townid and so on). I will write a more in depth tutorial on how to use it tommorrow.

stamas1 commented 2 months ago

https://github.com/B1GJ/GrepoBot.git this is the discord bot with attacks but it has gold trade/auto farm that i try to remove so i can give it to my whole alliance.

redii commented 2 months ago

Ah ok thank you for sharing!

That bot works indeed very similar to my tool. So in my config.json file you will have to paste in that H_TOKEN, world and your townid as you did for the python bot.

For the CSRF_TOKEN is a difference to mine though... for my bot you have to paste in your full Cookie Header something like: "metricsUvId=...; cid=...; ..."

I'm currently on the go, but I will add the reader tommorrow

redii commented 2 months ago

Hey, i just added the readme to the new repo: https://github.com/redii/grepo-tools

Check it out and if you need any help, please open a new ticket there since i will archive this project soon :)