Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Setup for Globals.py and running tutorial #62

Open
hycao opened this issue Apr 24, 2023 · 14 comments
Open

Setup for Globals.py and running tutorial #62

hycao opened this issue Apr 24, 2023 · 14 comments
Labels
good first issue Good for newcomers

Comments

@hycao
Copy link

hycao commented Apr 24, 2023

When I first saw this configuration file, I was also very confused.

I saw a tutorial from #18 , as follows:

First, you need create a discord bot name DAVINCI or xxx, This bot token is DAVINCI_TOKEN in your Globals.py.

Click here to create a bot for discord: Discord developer portal

After you have created your bot, you can use the reset token to obtain your bot key. It is shown below:

image

Then, you need to configure your robot's permissions and obtain the invitation link. It is shown below:

image

Copy the link and open it in a browser. You can add the robot to your own channel and confirm authorization.

Sencond, you need look at this: How to get your Discord token. This token is SALAI_TOKEN in your Globals.py.

Finally, You need copy your server_id and channal_id .

like this:


DAVINCI_TOKEN = 'MTEwMDA2xxxxxxxxxxxxxxxxxp.GPc_bP9xxWOe-GyAIhxxxxCS_du--mb0'

SERVER_ID = '109417889xxxxxxxx

SALAI_TOKEN = 'ODI4zzzzzzzzzzMw.GOeRZk.XuxxxxxxxxxxxxxxxxZ_3szzzzzzzzztA3-4'

CHANNEL_ID = '1094178892341837858'

If you need proxy for bot, you can change this line, add proxy for bot in main.py:

bot = discord.Bot(intents=discord.Intents.all(), proxy='http://127.0.0.1:7890')

The project running :

image

image

@hycao hycao mentioned this issue Apr 24, 2023
@nihs269
Copy link

nihs269 commented Apr 25, 2023

@hycao Do you have any ways to use MJ without subscribe??

@hycao
Copy link
Author

hycao commented Apr 25, 2023

@hycao Do you have any ways to use MJ without subscribe??

Sorry, I don't know how to using Midjourney without subscribe. You can use alternative products such as Stable Duffsion to generate images.

@nihs269
Copy link

nihs269 commented Apr 25, 2023

@hycao Do you have any ways to use MJ without subscribe??

Sorry, I don't know how to using Midjourney without subscribe. You can use alternative products such as Stable Duffsion to generate images.

I got it. Thank you so much!!

@ReberMusk
Copy link

Thanks bro. I used proxy fix my errors.

@ReberMusk
Copy link

Hi, Can you help me.
I almost granted him all permissions, but still got this error message.
image

@nihs269
Copy link

nihs269 commented Apr 26, 2023

You must invite MJ bot in to the same channel with your bot!

@ReberMusk
Copy link

You must invite MJ bot in to the same channel with your bot!

Of course, it already exists.
image

@nihs269
Copy link

nihs269 commented Apr 26, 2023

Of course, it already exists. image

so check carefully your bot's token (SALAI_TOKEN in Globals.py)

@ReberMusk
Copy link

Hi, Can you help me. I almost granted him all permissions, but still got this error message. image

I found a solution because ticks are required here. Thanks,bro.
image

@Wildric-Auric Wildric-Auric added the good first issue Good for newcomers label Apr 26, 2023
@Im-Sue
Copy link

Im-Sue commented May 22, 2023

请问server_id 和 channal_id 是什么

@Im-Sue
Copy link

Im-Sue commented May 22, 2023

what is server_id and channal_id

@nihs269
Copy link

nihs269 commented May 22, 2023

what is server_id and channal_id

The first one is serverid, the second one is channelid
aaaaaaaaaaaaaa

@Im-Sue
Copy link

Im-Sue commented May 23, 2023

what is server_id and channal_id

The first one is serverid, the second one is channelid aaaaaaaaaaaaaa

thank

@Im-Sue
Copy link

Im-Sue commented May 23, 2023

May I ask if there are any recommended proxy channels?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants