IS there any Autochat bot API available?

Asked Nov 25, 2021·6 replies·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi guys and devs,

I am here after a year.
I have 2 questions :

1. In 2020 I was using a chatbot api which autotalks in the Live chat via nightbot. due to some reason I lost that channel. and I forgot the API endpoint.
I am just wondering is it possible to make it again?

2. In my live stream there is voting system.
how can we get same $(count) in multiple commands.
example : If i want to vote nightbot
I will use !NIGHTBOT command. which increments their count by +1
sometimes people type only NIGHTBOT command ( without prefix )

so in this case, I want to increment !NIGHTBOT command's count by using second [ NIGHTBOT ] command

any help would be appreciated

Thank you

6 replies

Hi @Wooden Koala I am sorry for your loss.

There used be a API endpoint at https://vxrl.xyz/api/cleverbot/ask/ai/, which is no longer in service I believe as it gives No Output on every message.

The voting command is still possible.

!addcom -cd=5 !nightbot @$(user) voted for Nightbot! [ $(count) people voted for Nightbot ]

Your users may use command without any prefix (!).

!addcom -cd=5 nightbot -a=!nightbot

Regards

One more question -

1. there are lots of vote command in my Night bot dashboard.
I am sending request to my server to count the votes.

In next month I am going to change my server, and the problem is - I can't change command one by one.
cuz it is like a headache for me.

I want to use single command o change my server IP.
is it possible?

2. Commands samples :

Full command -

!TECHNOGAMERZ : $(eval a=`$(urlfetch http://202.61.205.216/t/?ax=$(user) voted for Techno Gamerz. Total $(count) peoples voted for Techno Gamerz.&process=Speak)`,`$(user) Voted successfully ✓`)

This is Another one -

!TEST_ : $(eval a=$(urlfetch json http://202.61.205.216/$(query)), )

Here, 202.61.205.216 is my server IP, and there are lots of commands in my dashboard.
3. also in this command I can't show no. of votes in chat. Because when we use multiple $(count) variables it's count increase by no. of variables. so is there any solution ?

Hi @Wooden Koala First, ignore my spellings and grammar errors.

And you better prepare yourself for that---pain---headache, there is no way to change all command's response with one single command.

Wooden Koala said:
when we use multiple $(count) variables it’s count increase by no. of variables. so is there any solution ?

True. 1 $(count) variable always increase by 1 on command run (n $(count) variable will increase by n). Well not actually, see this:-

!addcom !count $(count) $(count)
Ritik: !count
Nightbot: 1 2
Ritik: !count
Nightbot: 3 4

Consider storing the $(count) into a variable, instead of using many $(count) variables.

$(eval a=$(count); ...)

I believe you are trying to count every command used uniquely on user basis, as votes.
For that you surely need some kind of database---or server, here---and as in YouTube channels may have same names. So, just $(user) will leads to conflict. Better using $(userid) as every userID is unique.

Regards

Maple Goose said:
And you better prepare yourself for that—pain—headache, there is no way to change all command’s response with one single command.

Can we use alias command for server address?
Like I said earlier

Wooden Koala said:
This is Another one -
!TEST : t/?ax=$(user) voted for Techno Gamerz. Total $(count) peoples voted for Techno Gamerz.&process=Speak)

```
!TEST_ : $(eval a=$(urlfetch json http://202.61.205.216/$(query)), )
```

Didn't find your answer? The community is on Discord.

Ask on Discord