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

RSS[DISCORD] Command To Server


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:

Now sending commands to server from discord chat is real!

First of all we need to create bot here. Give needed perms and then invite it. to server.

Then create 2 text channels in discord:

1. For sending commands
2. To read output of commands

Later we will take ID of these channels and paste in config.

Important:

- in channel for sending commands, every message will be sent to server as command, so better hide channel from others
- unfortunately, not every output will be available in discord because of buffer limit
- don't even think to make same channel for sending commands and outputs

After loading plugin, if bot will send message to discord as "READY FOR COMMANDS", then we are ready to go.

Some screenshots:
68747470733a2f2f7777772e676172617965762d
68747470733a2f2f7777772e676172617965762d

If you get problems on installing, write it on comments and maybe i will make a wiki later.

ConVars:

HTML Code:

"sm_cts_bot_token - Bot token
"sm_cts_command_channel_id - Channel id to write commands
"sm_cts_output_channel - Channel id where bot will send output of commands
"sm_cts_server_id" - ID of your Server

There is a config file in cfg/sourcemod/command_to_server.cfg

Requirements:

Rest In Pawn 1.3
Discord API


Download:
GitHub Release
Source

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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