#an AI Discord Bot for Ask, Translate, imagine, Conversation, Moderation, and more

782 messages Β· Page 1 of 1 (latest)

raw badger
#

Hi, I am Arshia πŸ‘‹πŸ»

I am Verified Discord Bot developer you can see my projects in my GitHub and my web
https://arshia.gq/
https://github.com/iTzArshia/

I see really good source for Python in GitHub but didn't found any source for JavaScript so I start to make my own one...

This is a simple Discord Bot powered by OpenAI official librrary

  • supports Slash and Prefix Commands Both

  • Easy to use and customizable

  • Everything explained in README and config files

  • Current Feature:

Ask : Answers your questions with all GPT models (GPT 4 & GPT-3.5-Turbo)!

Imagine : Draw your imaginations with Dall.E!

Optimize : Optimizes your imaginations to get better response with imagine command with GPT-3.5-Turbo!

Translate : Translate your texts in any language to any language you want with GPT-3.5-Turbo.

ChatBot : A Channel where you can talk to the bot and have ChatGPT-Style conversation with GPT-3.5-Turbo (It has a temporary memory so that it can remember the contents for a short time)

Auto Moderation : An Auto Mod system which checks all of your server messages and send a log for your Admins if a message content complies with OpenAI's usage policies with Text-Moderation-004 (moderation model is free to use and you can config it as much as you want)

https://cdn.discordapp.com/attachments/948934301880299540/1075178005950910524/Ask.png
https://cdn.discordapp.com/attachments/948934301880299540/1075357015330803772/imagine.png
https://cdn.discordapp.com/attachments/948934301880299540/1075178006605213816/Translate.png
https://cdn.discordapp.com/attachments/948934301880299540/1075178006873657434/Auto_Mod.png
https://cdn.discordapp.com/attachments/948934301880299540/1076413407370158170/image.png

#

oh its also supports both slash commands and message commands

tame veldt
#

What model is this using?

raw badger
raw badger
#

Discord Bot - an image generator powered by "DALL-E" and ChatBot powered by "Davinci-003"

rocky escarp
#

Ah i need only Dall e2

raw badger
#

well just use imagine cmd

#

Β―_(ツ)_/Β―

#

each cmd has own engine

rocky escarp
#

Ok

raw badger
#

new feature: Translate

merry cairn
#

seems very nice, compliments

copper hinge
#

Hey @raw badger. Is there a direct link to add the bot to a server if not hosting it yourself?

raw badger
raw badger
#

an easy to use Discord bot powered by "Dall.E-2" and "Davinci-003" to ask, translate, draw

warm gust
warm gust
#

does this bot have that

raw badger
#

well openAi don't respond if its against the ToS by default

warm gust
#

it does for me..

raw badger
warm gust
#

What did you try to ask and let me try

raw badger
#

if you see it tell me to delete it

warm gust
warm gust
raw badger
warm gust
#

Letss goo

raw badger
raw badger
warm gust
#

How do i start using the moderation model or even just any model?

raw badger
#

openai.createModeration()

warm gust
#

oh

#

thanks

#

πŸ‘

raw badger
# warm gust oh

also you can do it in prompt ig, like if my message is against the ToS don't allow it or something like that

warm gust
raw badger
warm gust
#

thanks

warm gust
raw badger
warm gust
#

Yay

raw badger
#

Don't forget to ⭐ πŸ˜…

warm gust
#

Can you ping when your done and yes ima star in 2

raw badger
warm gust
#

:O

raw badger
#

I was working on Auto Moderation

raw badger
warm gust
#

cool!

raw badger
#

let me fix them first

warm gust
#

tho i wont use the whole system / bot im only gonna use that command:D

raw badger
#

XD

warm gust
#

ima just stalk the github repo

raw badger
warm gust
#

:O

#

Sooo cool!!!!!

#

@raw badger i really like your github profile is it okay if i use some of it on my own?

warm gust
#

Thanks

raw badger
#

Done I add moderation check

warm gust
#

That is cool!

#

Thanks!

#

Safty?

raw badger
warm gust
hexed gorge
#

following

raw badger
#

an AI Discord Bot for Ask, Translate, imagine, and Moderation

raw badger
#

@warm gust you told me to mention you

warm gust
raw badger
#

check first message

raw badger
warm gust
#

HOTTT

#

Does it detect stuff like i sent you?

raw badger
warm gust
#

nice!

#

does it also detect stuff in the answer?

ocean mantle
#

Noice

copper hinge
hazy delta
#

shahbal

raw badger
raw badger
raw badger
raw badger
hasty estuary
#

essya

raw badger
warm gust
raw badger
warm gust
raw badger
warm gust
#

oh oay

raw badger
#

function x(y) {
// code
}

warm gust
#

yeah

raw badger
#

both ways are possible

warm gust
#

I gotta change some things since i use TypeScript

#

but it is easy

raw badger
#

GL

warm gust
#

Thanks

warm gust
#

YAY it wokrs

raw badger
#

:/

#

why

raw badger
#

NEW Feature: Tokenizer added now it will check prompt tokens and substract it from 4096

copper hinge
#

Sweeeet

warm gust
idle sundial
#

I may be super braindead but for whatever reason I can't get the 'npm install' to work in any of the terminal windows I have available.
How do I make it work
....
I may have resolved this myself by actually using the required application...
GREAT WORK ON THE BOT BTW

hardy bridge
#

hlo

raw badger
raw badger
idle sundial
raw badger
#

and also don't forget to star 😁

idle sundial
raw badger
#

XD Tnx

#

now we have 40 stars πŸŽ‰

raw badger
cold ocean
#

hello

warm gust
raw badger
warm gust
#

waow

#

thanks

#

i can prob now get 40 stars too

raw badger
#

NEW Feature: it will optimize your imaginations so you can get better images with DALL.E

tnx to @lime flicker for help

raw badger
#

NEW Update: it will show image links in buttons instead of description

raw badger
#

NEW Feature: in the footer it will show how much does it costs...

raw badger
#

NEW Feature: it will save last messages so you can have a chat bot and talk with

raw badger
#

an AI Discord Bot for Ask, Translate, imagine, Conversation, Moderation, and more

raw badger
#

πŸŽ‰

cinder perch
#

j

raw badger
jolly stratus
#

@raw badger Do you have a public bot?

raw badger
slate summit
raw badger
slate summit
#

and need some help with bot from github
code: 'DisallowedIntents'

raw badger
#

go to developers portal

#

in Bot section

#

enable those

slate summit
# raw badger

Thank you, everything works.
How to make the bot reply like this?

raw badger
#

also don't forget to star πŸ˜„

slate summit
#

Ok, last question πŸ˜„
Why is he considering my nickname.
He wants to tell me about Bitcoin through my nickname.

raw badger
#

in the source

#

events folder

#

messageCreate.js file

#

push ctrl + f

#

change this to 'AI' (line 278)

#

change this to 'AI' (line 287) all of it like this: ${client.user.username} => AI

#

in line 291 and 292 change them to AI too

#

and also line 304

slate summit
#

like this ?

raw badger
#

you forgot "

#

let me re write it for you

#

@slate summit ^

slate summit
#

Thank you very much for your time. πŸ™‚

raw badger
#

YW

raw badger
warm gust
#

oh is there a gpt chat bot too?

warm gust
#

doesnt that use a lot of tokens

raw badger
#

we can't make it better for now

warm gust
#

mhm

jolly stratus
jolly stratus
#

πŸ˜‰

warm gust
jolly stratus
raw badger
#

Optimize feaeture behavior upgraded

jolly stratus
#

πŸ’œ

raw badger
jolly stratus
#

🐹

slate summit
#

something wrong with the date.
He says we are in 2021. Can it be updated?

lime flicker
light jolt
#

Imagebot

open anchor
idle sundial
#

Hi iTz Arshia, I have a question.
I have configured the chatbot.js and config.json files but am I unable to get any response from the chatbot functionality.
I created an enabled a channel called "chatbot" on my server.
I updated chatbot.js for "State: True" and ChatBotChannel: "chatbot"
I confirmed Config.json is functioning
Other features work but the chatbot isn't.
Any ideas?

#

Also, I forgot to star the github previously, but that has been resolved now πŸ™‚

idle sundial
#

LOL so I resolved my own issue.. I'm new to Discord bots.
I replaced the "ChatBotChannel:" bit with actually channel ID rather than its' name...

raw badger
raw badger
raw badger
#

ig I have to create a checker to return errors and don't let you to run your bot if you config it wrong πŸ€”

raw badger
half portal
#

@raw badger can you send me the link to add the bot

half portal
#

Great work 🐐

raw badger
open anchor
raw badger
open anchor
#

Proceeds to make a major event's prompt for the years 2021- 2023

idle sundial
slate summit
#

Is there anyone who could help me configure a VPS server for this?
Unfortunately, I don't know enough to do that.

raw badger
#

You need a normal VPS (Linux/Windows) you dont need too much ram for it 1GB is enough it don't use too much and thats it install node js on your VPS and then run the code

slate summit
raw badger
slate summit
raw badger
#

then it will became online

raw badger
#

πŸŽ‰

idle sundial
#

Yo It's Arshia, pretty exciting news regarding the new API's ... will you be adding support for those to your code?

open anchor
idle sundial
raw badger
#

Ready for BIG update 😁

raw badger
#

Soon πŸ‘€

raw badger
#

which one would you rather ? 1 command with 5 options or 5 different commands like /ask chatgpt/ask davinci /ask curie and...

raw badger
#

New Features:

Support GPT Turbo / Ada / Curie / Babbage / Davinci all in message commands and slash commands

And also little updates on prompts


I will update translator and optimizer to use GPT Turbo soon

peak stone
#

I have the bot working in my server but the "chatbot" side of it doesnt seem to be working. It says "you must provide a parameter model" at every prompt

raw badger
#

events/messageCreate

#

line 312

#

model: settings.completion.model to 'text-davinci-003'

peak stone
#

can the gpt turbo be used?

raw badger
#

no

peak stone
#

ah k

raw badger
#

you have to change other things too

peak stone
#

k np

raw badger
#

I will update it to GPT Turbo

#

but you can't change it to GPT Turbo just by renaming it

peak stone
#

understood

#

redeploy the bot after the change?

#

new to this

raw badger
peak stone
#

i have it running on raspberry pi. do i need to run it again after i make the code change?

peak stone
#

k

raw badger
#

after changes you have to restart it

peak stone
#

so, turn it off, make the change, turn it on, k

#

ty

raw badger
#

maybe..

peak stone
#

got it working, ty much, cant wait for chatgpt πŸ˜‰

raw badger
#

New Update: Translator use ChatGPT API

raw badger
#

New Update: Optimizer use ChatGPT API

raw badger
#

New Update ChatBot use ChatGPT API

raw badger
raw badger
raw badger
raw badger
raw badger
idle sundial
#

You legend!!

raw badger
peak stone
#

working great, ty πŸ™‚

peak stone
#

when using the bot, Im noticing on my openai model usage page that there are simultaneous calls to an api called text-moderation. What's that about? I didnt enable the moderation option. @raw badger

ember escarp
#

hi

#

how this work ?

peak stone
# ember escarp how this work ?

you would go to the github posted here and use a server to host your own discord bot that connects to chatgpt and the other models

ember escarp
#

it work on replit ?

peak stone
#

hmm, not familiar. creator will answer when they see the question.

ember escarp
#

@peak stone

#

all good but what is that ?

peak stone
#

did you supply your own openai key?

ember escarp
#

yeah

peak stone
#

they let you have 3 months or $18 dollars of free api usage. need to get the paid option now. its suuuuper cheap

#

.0002 per 1k tokens

ember escarp
#

from where ?

peak stone
#

openai billing page

ember escarp
#

that ?

peak stone
#

yeah, 'set up paid account"

#

i think i've racked up about 10 cents with heavy usage

ember escarp
#

now from where to buy the key ?

peak stone
#

nope that should be it

#

the key you had should now allow for paid usage

ember escarp
#

ah

peak stone
#

just make sure you're using the gpt turbo api. this bot does by default now in version 2

#

the text davinci model that we had to use previosuly to get good answers was .002 cents per 1k tokens

#

10x more

ember escarp
#

that ?

peak stone
#

mmm, no. are you trying to use this discord bot?

ember escarp
#

yeah

#

i took the apis from here

peak stone
#

did you get the new version 2 from a few hours ago or did you already have it?

ember escarp
#

lemme check

#

sec

peak stone
#

the new version is set uip to use the gpt turbo chatgpt api

#

the yesterday and earlier version would have been set up to use text-davinci model

ember escarp
#

that ?

peak stone
#

so, yeah, you can do /ask commands anywehere in your server if the bot is invited. but to set up the "chatbot" channel is a separate feature. looks like you have the chatbot set up to use your #chat-gpt channel?

#

oh, both version will display that page. the only difference is which model is set to work. the chatgpt (gpt turbo) model wasnt set up on the previous versions

#

since it was new

#

but if you just got it within a few hours you should have the version 2 he just posted

ember escarp
#

@peak stone thanks mate

peak stone
#

np πŸ™‚

ember escarp
#

is this really money ?

peak stone
#

yes

#

to keep track of it, go to the oenai billing page again and check usage

#

its at the bottom

#

lists everything so its easy to track

#

and that is for the ask commands

#

the 'chatbot' feature wont list it in every message. it just functions like the chatgpt website mostly

ember escarp
#

ah ok

peak stone
#

and by the looks of it, the average user would maybe rack up a dollar or two with heavy usage per month. its great

raw badger
raw badger
raw badger
raw badger
ember escarp
#

how it works ?

#

the payments ?

#

i cancel my visa on openai

raw badger
#

Every 1000 tokens in the GPT 3.5 will consume 0.002

#

Every 1000 tokens kn Davinci will consume 0.02

#

In each request I show how much did it use in the message footer

ember escarp
#

3.5$ every 1000 asks you mean ?

raw badger
# ember escarp

Ig u are using Ada here as you can see this question consumed $0.0001

raw badger
#

it depend on question

ember escarp
#

ah

#

coz i want to use it in public server

raw badger
#

For example this question consumed $0.009

ember escarp
#

so that will be hard on me

#

lol

raw badger
ember escarp
#

how to use it

raw badger
#

18$ mean 9,000,000 gpt3.5 tokens

ember escarp
#

i had one like with prefix and it was free

#

dunno where it gone

#

:((

raw badger
raw badger
#

OpenAI isnt free

#

They just didnt tell you that its paid

ember escarp
#

i used a bot from replit

#

it was free

#

πŸ˜„

raw badger
#

So you steal their api key? πŸ‘€πŸ’€

ember escarp
#

nope

#

i used my api

#

without setup pay

#

it was working like 2 months

#

then dunnno what happen

#

with the code

raw badger
#

Nothing happen you reached your 18$

#

XD

ember escarp
#

xD

raw badger
raw badger
ember escarp
#

ah

raw badger
#

I could remove the footer but I add it to tell you how much is consumed each time

ember escarp
#

like 50$ each month ?

raw badger
#

From the source no

#

Thats OpenAI stuff not the coding stuff

#

Also 50$ each month is tooooo much

ember escarp
#

my server is public

#

πŸ˜„

raw badger
#

It mean 25,000,000 tokens

ember escarp
#

from here

#

right ?

raw badger
ember escarp
#

25k

#

active

raw badger
#

Hmmm

#

Idk...

raw badger
ember escarp
#

25,000,000 tokens

#

means what ?

raw badger
#

Oh god πŸ’€πŸ’€

#

Let me explain from first

#

You have 18$ for free

ember escarp
#

xD

#

my brain !

#

lol

raw badger
#

We have different models

GPT3.5
Davinci
Curie
Babbage
Ada

ember escarp
#

yeah

#

ok

raw badger
#

1K GPT3.5 tokens equals to 0.002$

#

1K davinci tokens equals to 0.02$

#

And...

#

When you asm a question

ember escarp
#

ah ok

raw badger
#

Depend on your question (prompt token)
And bot reply (output question)
Will subtract from your all tokens

#

For example you ask "hello how are you" it will consume 10 tokens and bot will reply "Im fine how you doing" and it will costs 20 tokens

#

Sooo

#

At all this request consume 30 tokens

#

After that openai check your model

ember escarp
#

oh i got it now

raw badger
#

For example if you are using gpt 3.5 it will consume $0.00006 from that $18 ypu had

ember escarp
#

yeah

#

i got it now

#

i change thos e

#

both to 50$

#

good right ?

peak stone
#

you can put a lower amount in th esoft limit so it will warn you when you're close, but yeah, if you want to cap out at $50, thatll be the hard limit

#

so @raw badger , do you know why im seeing "text-moderation" api calls in my openai usage stats, with your bot? i havent seen that in others

peak stone
#

ah missed that πŸ™‚

#

is it something your code is doing, or openai?

peak stone
#

gotcha

raw badger
#

at first it will check the question

#

if data was flagged it will return err

#

if it wasn't it will createChatCompletion

peak stone
#

maybe an annoying question, if i didnt want moderation in that way, is there something i could do to the code to disable that?

raw badger
#

then again it will check bot response

peak stone
#

if it effects the restrictions everyone is always complainin about with chatgpt πŸ™‚

peak stone
#

k

#

ty

raw badger
#

instead of checking question and then create createChatCompletion if data wasn't flagged createChatCompletion without checking

#

and same thing here too

peak stone
#

i see

#

ty πŸ™‚

ember escarp
#

@raw badger

#

@peak stone

#

that for free right

#

the chat one

peak stone
#

no, it will also use the token costs

ember escarp
#

ah ok

peak stone
#

its now using the gpt turbo one that costs that .002 cents

#

per 1k tokens

#

wait

#

.0002*

ember escarp
#

.0002

peak stone
#

yes

ember escarp
#

20$

#

how much

#

πŸ˜„

peak stone
#

no

#

2 ten-thousandths of a cent

#

suuuuper cheap

ember escarp
#

ah nice

#

i use the limt of visa

#

20$

#

at openai

peak stone
#

i'd be impressed if your server used $50 lol

ember escarp
#

they will

peak stone
#

yeah i put mine to $10. ive used 11 cents so far

ember escarp
#

looooooool

peak stone
#

lol

ember escarp
#

xD

peak stone
#

i dropped my chatgpt plus sub when they dropped the api

#

you said that you limited the token usage to 500. Where would i change the code to get it back to the 4000 tokens?

peak stone
raw badger
#

Just check functions.js in utils folder

#

In pricing function

#

I callculate everything

peak stone
#

i see return {
tokens: messageTokens,
maxTokens: 4095 - messageTokens

#

so its already at 4k?

#

yeah this is where my inexperience stops me πŸ™‚ no worries, just curious

raw badger
#

It will count prompt tokens and remove it from 4095 and pass it as max tokens

peak stone
#

ah gotcha, yeah i was interested in unleashing the amount of tokens allowed in responses to max

#

you had mentioned a 500 limit

ember escarp
#

Ah nice

#

I used limt 20$ each month ill see if they reach it

ember escarp
#

Guys how to make the bot 24/7 online

#

I use replit

#

All work only the https not shown

#

So cant use uptimerobot without the https

#

@peak stone

#

@raw badger

raw badger
#

Create server.js and require it in index.js

#

@ember escarp

ember escarp
#

File server.js ?

peak stone
#

Not familiar with that side of things. I have my raspberry pi hosting this and a telegram bot

ember escarp
#

To keep it 24/7 online

#

But needs https

ember escarp
#

@raw badger please guys need help

#

you know about replit ?

raw badger
ember escarp
#

like that

#

i got some bots have it

#

but gpt dont

#

dunno why

raw badger
#

No I mean in codes

ember escarp
#

really i dont know xd

raw badger
#

You are just copy pasting πŸ’€πŸ’€πŸ’€

ember escarp
#

xD

#

yeah

raw badger
#

Show your files

ember escarp
raw badger
ember escarp
#

gg developer

#

xD

raw badger
raw badger
ember escarp
#

what files ?

#

only those i have

raw badger
#

πŸ’€

ember escarp
#

and the bot working 100%

raw badger
# ember escarp

A screen shot like this but from your other projects which has https

ember escarp
#

ah sec

#

maybe from src

raw badger
ember escarp
#

sure

#

sec

#

i think from here

raw badger
#

Handlers/server.js

ember escarp
#

sec

#

ah yeah

#

gg

raw badger
#
Β Β Β Β Β Β constΒ expressΒ =Β require('express'); 
 Β Β Β Β Β Β constΒ appΒ =Β express(); 
 Β Β Β Β Β Β constΒ portΒ =Β 8080; 
 Β Β Β Β Β Β app.all('/',Β (req,Β res)Β =>Β { 
 Β Β Β Β Β Β Β Β res.send(`ExpressΒ Activated`); 
 Β Β Β Β Β Β Β Β res.end(); 
 Β Β Β Β Β Β }); 
 Β Β Β Β Β Β app.listen(port,Β ()Β =>Β client.logger(`BotΒ runningΒ onΒ http://localhost:${port}`));
#

create a server.js

#

Require it in index

#

And boom

ember escarp
#

how to require it in index

#

what to type there

#

this my index

raw badger
#

πŸ’€JS Developer πŸ’€

ember escarp
#

haha

raw badger
#

require('./server')

ember escarp
#

const only ?

raw badger
#

In line 23

#

No const

#

Just what I wrote

ember escarp
raw badger
#

Well u didnt create server
Js file

#

πŸ’€

ember escarp
#

i did

raw badger
#

Show

ember escarp
raw badger
#

This isnt how js works πŸ’€

ember escarp
#

ah ok

#

how it works

#

xD

#

haha

ember escarp
#

sec

raw badger
#

You know what ignore everything I said

#

Copy paste this in index.js

#

Instead of that require

ember escarp
#

the server.js ?

raw badger
#

πŸ’€

ember escarp
raw badger
#

Remove server.ja

ember escarp
#

still same error

raw badger
#

Remove handler

ember escarp
#

ok

raw badger
#

Remove everything

#

And then in index.js

ember escarp
#

yeah

#

done

#

removed

raw badger
#

Instead of require()

#

Put that code

ember escarp
#

line 23 ?

raw badger
#

Yes

ember escarp
#

done

raw badger
#

Run

ember escarp
raw badger
#

Yup

ember escarp
#

yay !

raw badger
#

Worked?

ember escarp
#

yup

#

gg

raw badger
#

πŸ˜„

#

Yw

#

Dont forget to ⭐

ember escarp
#

sure

#

done

#

what those error

raw badger
raw badger
ember escarp
#

how is that

#

xD

raw badger
ember escarp
#

you love koala

raw badger
#

πŸ‘€

ember escarp
#

here

raw badger
#

I love someone who sleepy like a koala πŸ˜„

ember escarp
#

haha

#

this error you know how to fix it

raw badger
#

Which?

ember escarp
#

says from line 30 to 38

#

that

raw badger
#

Told U

raw badger
ember escarp
#

ah

#

sec

raw badger
ember escarp
#

done

#

πŸ˜„

#

i like replit

#

more

#

easy to use

#

even i got hacker plan there

raw badger
#

Nice

ember escarp
#

error gone

#

localhost is only 8080

#

i hear some guy said

#

0000 best

#

from anywhere host

raw badger
#

Road to 100

ember escarp
#

you mean this

#

star

#

done

#

76 now

#

im 76

ember escarp
#

@peak stone is that alot ?

peak stone
#

is all that gpt turbo model?

ember escarp
#

yeah

#

the chatbot only

#

but here says 01 mar

#

and today 05 mar

#

@peak stone

#

my brain !

#

lol

peak stone
#

yeah, the timing on their usage is based on utc lol. Id say thats alot, yes. wow

ember escarp
#

so @peak stone that 01 is only today ?

#

or ?

peak stone
#

if most of that $8.94 is from one day, then yeah, thats a lot of usage

ember escarp
#

@peak stone i think not today

#

4 days ago

#

i was have one

#

not this

#

another bot Ai

#

but it crash and break down

grave heraldBOT
#

@ember escarp

Larm's message blocked by AutoMod

We are committed to fostering a positive atmosphere and have implemented additional filters to block any inappropriate or disruptive language and topics.

ember escarp
#

Sorry

rocky escarp
raw badger
raw badger
ember escarp
#

must make a restart for it

raw badger
#

My source just send request to open ai api and reply the response in discord

ember escarp
ember escarp
#

good or bad ?

agile parrot
#

seems like the bot turns off (or crashes but i dont see an error that would suggest this) when it sends a response.txt if chatbot mode is enabled, i tried to fix that but im not that experienced with discord bots, thought i'd let you know incase you didnt already

#

other than that, bot is amazing, gj

raw badger
#

I will check it πŸ‘€

raw badger
autumn spire
#

hello

#

@grave herald hello

raw badger
idle sundial
#

yoooo this bot is so fast now

raw badger
raw badger
#

close to 100

#

also anyone has any idea to add?

idle sundial
#

Functionality for other apps? Like teams?

idle sundial
#

oooh actually.. The ability to clear the current conversation in chatbot, like how you go to new chat in chat gpt

ember escarp
#

Nothing need too add

#

Its insane

raw badger
idle sundial
#

It really is so good

#

Is it possible to make the bot detect when it has a time out or crash then reboot itself?

ember escarp
raw badger
ember escarp
#

Got email from Ai

peak stone
#

so i got gpt 4 api access. how would i implement that into this one i already have going with gpt trubo?

peak stone
#

lol nevermind, i had chatgpt4 show me how to do it 0.o. no joke worked.

raw badger
raw badger
#

πŸ’€

idle sundial
#

Oh no. Maybe some day

ember escarp
idle sundial
#

Apparently, chat completions on gpt-4 api use the same method as gpt-3.5. Would just require model value to be replaced. Wouldn’t know where to start on image or video input/outputs

short reef
#

🏠 Optimisez la transmission de votre patrimoine avec l'usufruit et le quasi-usufruit ! 🌟


Exemple :

Parents : 40% d'usufruit sur la rΓ©sidence principale et le portefeuille d'actions

Enfants : 60% de nue-propriΓ©tΓ© sur la rΓ©sidence principale et le portefeuille d'actions


Avantages :

  1. Les parents conservent la jouissance de leur rΓ©sidence principale et peuvent disposer librement des sommes du portefeuille d'actions.
  2. Les enfants bΓ©nΓ©ficient d'une transmission anticipΓ©e du patrimoine, optimisant ainsi la fiscalitΓ©.
  3. Les droits des enfants en tant que nu-propriΓ©taires sont prΓ©servΓ©s, puisqu'ils rΓ©cupΓ©reront la pleine propriΓ©tΓ© des biens Γ  la fin de l'usufruit.
ember escarp
#

@raw badger

#

what that error code 400 ?

ember escarp
idle sundial
idle sundial
#

@ember escarp i think it's a new issue, i'm getting the same error on an older version

#

@ember escarp I have done a search on the issue and some people report that lowering the "max_tokens" parameter from 4000 to 2200 has resolved it for them.

ember escarp
#

ah

raw badger
ember escarp
proud trout
#

Oh hi. I found your repo before I found this discord. Appreciate the legwork! I tweaked my system prompt a little and she got a bit feisty... keep up the great work!

raw badger
fair yew
#

hi, i found your repo and it's really brilliant. i am facing a slight problem changing the bot personality prompt. when i was changing it initially the bot was responding as per the prompt i gave. but after sometime it goes back again to default

proud trout
cinder perch
cinder perch
#

How to fix this error
(I copied and pasted my discord bot token) what's the problem now

rocky escarp
cinder perch
#

@rocky escarp ^^

fair yew
cinder perch
fair yew
cinder perch
fair yew
# cinder perch Yes

You don't need to put in secrets I think. There is a file config.json under the file config

#

Put your tokens and api there

cinder perch
#

Hackers are going to hack my bot and use it to nuke servers

raw badger
#

did u change index.js?

cinder perch
raw badger
#

then the err is right

#

you add token in env but still index.js read it from config.json

#

change the index.js code too

cinder perch
#

I put my token is config.jsom

#

Jason

pale cipher
#

Hey @raw badger i tried ur source code but for some reason the bot isn't regestring slash commands

raw badger
pale cipher
#

The problem is no error.....

#

And it logs into the bot successfully and says loaded event and commands

#

But still not working either the / or prefix and even the badge for / support didn't appear on the bot

cinder perch
raw badger
pale cipher
#

Wait is it global commands or no?

#

Coz if so it may take for registration right?

lost siren
#

@raw badger Your project is amazing!

#

May I ask where did you learn to code in python, javascript, and other programming langauges?

raw badger
raw badger
#

but I learn js from MDN

pale cipher
slender lichen
#

β”¬β”€β”¬γƒŽ( ΒΊ _ ΒΊγƒŽ)

idle sundial
#

Hey Arshia, i hope you are doing well. May I ask where I am able to change the model used for Chat in channels? It's currently using GPT-3.5-TURBO and i want to use GPT-4 with my API Key.
My understanding is I can just change the model in the HTTP Post request but idk where to find that in your code. Can you point me to a file?

#

I found in %\Commands\Messages the files which have the this for the /ask commands and could change there but no idea about the model for chat functionality

raw badger
#

OK I want to start this project again

#

ok for start I want to remove moderation check before and after and just put the fouces on using GPT

raw badger
#

Boom

raw badger
#

@idle sundial this is what you want use versiob 3.0.0 in this version you can use both gpt 4 and 3.5

idle sundial
#

Very nice.
Definitely prefer API cost over the 50 message/3 hours limit lol

idle sundial
#

The API can handle however many requests you can afford. ChatGPT Plus is limited in the amount of chats

raw badger
#

Fair enough I just wanted to tell you that I updated the bot as you wanted before XD

raw badger