#discord bot for generating images with slash commands
46 messages · Page 1 of 1 (latest)
Hey @soft steppe what do you think about adding your bot here:
https://github.com/DeeJayTC/dalle-extensions
I just started with the repository tho would be cool to have yours in there to have one large Github repo with all
the things out there. At least i'll add you to the list 🙂
Didn't see that its actually from openAI damn sorry...thought its a community creation as well!
I think I messed up something. I tried changing the size to 512(x512) or 1024(x1024), and when I do it says that 512 is incompatible/overlap with size 256.
I'm editing it in constraints.ts is that incorrect?
I am having trouble setting this up, I am a bit confused, I can do it all up to the part where you edit the config file and then I get confused
What’s the error @devout stirrup
<:attention:1046329820331646986> EclipseMyst#3663 said:
I’m just not really sure what to do after adding the bot to your server, the actual putting the code in part. I’ve looked at a few tutorials but they all seem to do different things @soft steppe
||773962948782850069||
OpenAI staff mentions are disabled.
Ah sorry about that
Did you read the read me? Just run those commands
Ok I’ll have another look
Hi, how can I add some javascript code that checks for member permissions before they use a slashcommand?
or a better question I guess is, how can I get a member object in the checkPermissions function such that I can do member.roles.has on it?
https://discord.js.org/#/docs/discord.js/main/class/GuildMember . roles on this
interaction.user.roles i think?
oh but why do you want roles? why not just check the permissions directly?:
Oh, I want a specific role to only be able to use the bot, that's what I meant
Thanks so much for the info! I'll give it a try
Oh the role part for slash can be done in server settings when you add it to the server
It’s under Integrations
Oh, I didn't even know that! Thanks so much for all your help!
@river silo
Image generation is not available in this server.
To start generating images, click here.
guy i need help
this is amazing
I want to create an account
Do it..?
const invalidToken = new DiscordjsError(ErrorCodes.TokenInvalid);
^
Error [TokenInvalid]: An invalid token was provided.
at WebSocketManager.connect (/home/austin/Desktop/dallify-discord-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:134:26)
at Client.login (/home/austin/Desktop/dallify-discord-bot/node_modules/discord.js/src/client/Client.js:232:21)
at Object.<anonymous> (/home/austin/Desktop/dallify-discord-bot/src/Bot.ts:21:8)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module.m._compile (/home/austin/Desktop/dallify-discord-bot/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions.<computed> [as .ts] (/home/austin/Desktop/dallify-discord-bot/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
code: 'TokenInvalid'
}```
nvm i used wrong discord token
ur token is invalid
what's the issue ?
@karmic fjord
¯_(ツ)_/¯
Your free quota is over
Yes
@left finch haa I saw that
Ok
Hi I'm getting an error that seems to be with discord.js? Can someone help me explain what's going on
$ npm run start
> start
> ts-node src/Bot.ts
/Users/x/workspace/dalle-discord-bot/node_modules/ts-node/src/index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
src/commands/Draw.ts:38:40 - error TS2339: Property 'getString' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocused">'.
38 const prompt = interaction.options.getString("prompt");
~~~~~~~~~
src/commands/Draw.ts:39:39 - error TS2339: Property 'getInteger' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocused">'.
39 const count = interaction.options.getInteger("n") ?? DEFAULT_IMAGES;
~~~~~~~~~~
at createTSError (/Users/x/workspace/dalle-discord-bot/node_modules/ts-node/src/index.ts:859:12)
at reportTSError (/Users/x/workspace/dalle-discord-bot/node_modules/ts-node/src/index.ts:863:19)
at getOutput (/Users/x/workspace/dalle-discord-bot/node_modules/ts-node/src/index.ts:1077:36)
at Object.compile (/Users/x/workspace/dalle-discord-bot/node_modules/ts-node/src/index.ts:1433:41)
at Module.m._compile (/Users/x/workspace/dalle-discord-bot/node_modules/ts-node/src/index.ts:1617:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
at Object.require.extensions.<computed> [as .ts] (/Users/x/workspace/dalle-discord-bot/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1113:32)
at Function.Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1137:19) {
diagnosticCodes: [ 2339, 2339 ]
}
at Client.login (C:\Users\.\Desktop\ChatGPT-Discord-Bot-2.5.0\node_modules\discord.js\src\client\Client.js:214:52)
at Object.<anonymous> (C:\Users\.\Desktop\ChatGPT-Discord-Bot-2.5.0\deploy-commands.js:80:8)
at Module._compile (node:internal/modules/cjs/loader:1730:14)
at Object..js (node:internal/modules/cjs/loader:1895:10)
at Module.load (node:internal/modules/cjs/loader:1465:32)
at Function._load (node:internal/modules/cjs/loader:1282:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {
code: 'TokenInvalid'
}```
idk what I did wrong. I copied the key from openapi and discord and its invalid