Code Monkey home page Code Monkey logo

Comments (9)

Bacon-Fixation avatar Bacon-Fixation commented on September 22, 2024

Howdy @amirshah2935

First, I highly recommend regenerating your tokens for your .env file, as they are private credentials and should not be shared.

For windows, I recommend installing docker desktop
after installation,
launch docker desktop,
create the Redis server container by running
docker run --name master-bot-redis -p 6379:6379 -d redis redis-server --save 60 1 --loglevel warning
in console.
Now when you bring back up Docker Desktop you should see master-bot-redis appear in the containers tab you, can use this to confirm that the Redis server is installed and/or running.

I hope this helps

Much Love
-Bacon

from master-bot.

amirshah2935 avatar amirshah2935 commented on September 22, 2024

Hi,

thanks for your promp reply, im gonna test it and update if this is working for me, and yeap i just thought about it yesterday , will be regenerating new token, thanks again for the advise.

regards

from master-bot.

amirshah2935 avatar amirshah2935 commented on September 22, 2024

Hi @Bacon-Fixation,

I manage to install Docker Desktop and run The Master-Bot-Redis, shown as running in the container, how do i go on after this, as im trying again, to npm run dev from my terminal, it shows the same error like its not connected with the Docker-Redis

please advise.

from master-bot.

Bacon-Fixation avatar Bacon-Fixation commented on September 22, 2024

I have a couple of questions, maybe help narrow down the issue a bit better

Are you running the bot on the same pc as the Redis server?

Is the Redis server running before you run the npm run dev command?

In docker desktop is there a port listed?
image

Much Love
-Bacon

from master-bot.

amirshah2935 avatar amirshah2935 commented on September 22, 2024

yes im running the bot on the same place as the redis server/ docker desktop.

it is shown as running as per ur image there...somehow the ports number is not there and i have fixed it with other command, somehow its works. Thanks a lot..but more error coming..

after running the bots and try to send some /play query, i got some prisma:query error as below image. saying guild not found, i think is due to my bot permission or something but not sure if its correct or not.

image

from master-bot.

Bacon-Fixation avatar Bacon-Fixation commented on September 22, 2024

Managed to replicate your error

[0] prisma:query SELECT 1
[0] prisma:query SELECT "public"."Guild"."id", "public"."Guild"."disabled_commands" FROM "public"."Guild" WHERE "public"."Guild"."id" = $1 LIMIT $2 OFFSET $3
[1] 10-21-2022 07:53:15 error: Client Listener TRPCClientError: Guild not found
[1] 10-21-2022 07:53:15 error: Client Listener TRPCClientError: Guild not found

Seems that the bot was invited to your discord server when the bot wasn't running,

with Master-Bot running, kick the bot for your discord server and re-inviting the bot through the bots dashboard http://localhost:3000

or

with Master-Bot running, kick the bot for your discord server and re-inviting the bot with the NEXT_PUBLIC_INVITE_URL that you made for the .env file

Much Love
-Bacon

from master-bot.

galnir avatar galnir commented on September 22, 2024

Managed to replicate your error

[0] prisma:query SELECT 1
[0] prisma:query SELECT "public"."Guild"."id", "public"."Guild"."disabled_commands" FROM "public"."Guild" WHERE "public"."Guild"."id" = $1 LIMIT $2 OFFSET $3
[1] 10-21-2022 07:53:15 error: Client Listener TRPCClientError: Guild not found
[1] 10-21-2022 07:53:15 error: Client Listener TRPCClientError: Guild not found

Seems that the bot was invited to your discord server when the bot wasn't running,

with Master-Bot running, kick the bot for your discord server and re-inviting the bot through the bots dashboard http://localhost:3000

or

with Master-Bot running, kick the bot for your discord server and re-inviting the bot with the NEXT_PUBLIC_INVITE_URL that you made for the .env file

Much Love -Bacon

Yeah I hope to overcome this issue, Discord's API is giving me a hard time with this one and I'm also short on time to figure it out quickly

from master-bot.

amirshah2935 avatar amirshah2935 commented on September 22, 2024

Hi Bacon,

I love you so much muahh.. Thanks and appreciate your time in guiding me ..

regards,

from master-bot.

Bacon-Fixation avatar Bacon-Fixation commented on September 22, 2024

You are very welcome my friend, if you have any other issues, feel free to open a new post, and we will try and figure it out.

Much Love
-Bacon

from master-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.