Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[ANY] Cleverbot (is a douchebag)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[ANY] Cleverbot


Talk with a robot because who need friends !
https://www.cleverbot.com/
910797c17e.png
So... I just saw that Headline released a cleverbot API, thanks to slampemil to let me know.
Many month ago, I tried to do that in a very impractical way and I just forgot about it.
But since I got the API, I was able to do it. So thanks again to Headline wich should have all the credits for this, I just made it more user friendly.

Original idea : https://forums.alliedmods.net/showthread.php?t=270743

944b44999e.png
Here is the list of avaible features for now :
  • Set a custom name for the bot
  • Instant connection, almost no delay between messages and answers (thanks to the api)
  • Easy to configure

066043be6c.png

Before anything, make sure you have installed :

[Any] Chat-Processor (Replacement for Simple Chat Processor)
[ANY] CleverBot API Wrapper
[ANY] SteamWorks


1) Create an account to get your API key here : https://www.cleverbot.com/api/#abovetitle
2) Get your API key here once you are registred : https://www.cleverbot.com/api/my-account/
3) Download the SMX file.
4) Put the smx file in the PLUGINS folder.
5) Edit the convar to suits your needs (put them in your server.cfg or whatever. No file created for this plugin) YOU NEED TO SET THE API KEY !
6) Load the plugin by changing map, or restarting the server.
7) That's it ! You can now use it !

e894d3eab4.png
sm_cbmsg - Send a message to the bot, can only be done through the server console !

Otherwise, in game you can write a message starting with the bot name, for exemple if "cleverbot_name" CVAR is set to "Cleverbot" (by default it is) you will need to write a request like this :

Exemple 1
Code:

Arkarr : Cleverbot How are you ?
Exemple 2
Code:

Arkarr : Cleverbot How much does 1+1 ?
55c1dba974.png
cleverbot_api_key "XXXXXXXXXXXXXXXX"
The api key of the cleverbot account, can be found here : https://www.cleverbot.com/api/my-account/

cleverbot_name "Cleverbot"
The keyword to send cleverbot messages.

f0cc0f7c77.png
Nothing, really. Just feel free to ask.

5e5ba6f955.png
None found yet.

00e99ea989.png
<none>

6e8e51b58d.png
See attachement at the end of this post

Enjoy !

Logs :
Spoiler

Attached Files
File Type: sp Get Plugin or Get Source (Cleverbot.sp - 3.0 KB)
File Type: smx Cleverbot.smx (15.3 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...