Allows to send messages to players with a Steam Bot
Check messagebot.inc
for available functions.
Binaries can be found in the CallAdmin Steam Module or on the releases page.
- Download the latest release from the releases page.
- Put the extension file
messagebot.ext.dll
(windows server) and/ormessagebot.ext.so
(linux server) into theaddons/sourcemod/extensions
folder. - Put the
ca-bundle.crt
file into theaddons/sourcemod/data/messagebot
folder. If it does not exist, create it.
-
Set build path
export BUILD_DIR=$HOME
cd $BUILD_DIR
-
Build openssl
wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz && tar -xvzf openssl-1.1.1a.tar.gz
cd openssl-1.1.1a
setarch i386 ./config -m32 no-shared && make
mkdir lib && cp *.a lib/
cd $BUILD_DIR
-
Build zlib
wget http://zlib.net/zlib1211.zip && unzip zlib1211.zip
cd zlib-1.2.11
CFLAGS=-m32 ./configure -static && make
mkdir include && mkdir lib && cp *.h include/ && cp libz.a lib
cd $BUILD_DIR
-
Build libidn
wget https://ftp.gnu.org/gnu/libidn/libidn2-2.0.5.tar.gz && tar -xvzf libidn2-2.0.5.tar.gz
cd libidn2-2.0.5
CFLAGS=-m32 ./configure --disable-shared --enable-static --disable-doc && make
mkdir include && cp lib/*.h include/ && cp lib/.libs/libidn2.a lib
cd $BUILD_DIR
-
Build libcurl
wget https://curl.haxx.se/download/curl-7.62.0.zip && unzip curl-7.62.0.zip
cd curl-7.62.0
./configure --with-ssl=$BUILD_DIR/openssl-1.1.1a --with-zlib=$BUILD_DIR/zlib-1.2.11 --with-libidn2=$BUILD_DIR/libidn2-2.0.5 --disable-shared --enable-static --disable-rtsp --disable-ldap --disable-ldaps --disable-manual --disable-libcurl-option --without-librtmp --without-libssh2 --without-nghttp2 --without-gssapi --host=i386-pc-linux-gnu CFLAGS=-m32 && make all ca-bundle
- DO NOT INSTALL IT!
cd $BUILD_DIR
-
Get Sourcemod 1.9
git clone https://github.com/alliedmodders/sourcemod --recursive --branch 1.9-dev --single-branch sourcemod-1.9
-
Build MessageBot
git clone https://github.com/dordnung/MessageBot
cd MessageBot
make SMSDK=$BUILD_DIR/sourcemod-1.9 OPENSSL=$BUILD_DIR/openssl-1.1.1a ZLIB=$BUILD_DIR/zlib-1.2.11 IDN=$BUILD_DIR/libidn2-2.0.5 CURL=$BUILD_DIR/curl-7.62.0
-
Build zlib
- Download zlib from
https://zlib.net/zlib1211.zip
and unzip to some folder - Open the
Developer Command Prompt for VS 2017
orDeveloper Command Prompt for VS 2015
at thezlib-1.2.11
folder - Type
vcvarsall.bat x86 8.1
and press ENTER - Type
nmake /f win32/Makefile.msc LOC=-MT
and press ENTER - Type
md lib include
and press ENTER - Type
copy /Y zlib.lib lib
and press ENTER - Type
copy /Y *h include
and press ENTER - Add a new system variable named
ZLIB
pointing to thezlib-1.2.11
folder
- Download zlib from
-
Build libcurl
- Download curl from
https://curl.haxx.se/download/curl-7.62.0.zip
and unzip to some folder - Reopen the
Developer Command Prompt for VS 2017
orDeveloper Command Prompt for VS 2015
at thecurl-7.62.0
folder - Type
vcvarsall.bat x86 8.1
and press ENTER - Type
cd winbuild
and press ENTER - Type
nmake /f Makefile.vc mode=static WITH_ZLIB=static ZLIB_PATH=%ZLIB% RTLIBCFG=static VC=15 MACHINE=x86
and press ENTER - Add a new system variable named
CURL
pointing to thecurl-7.62.0/builds/libcurl-vc15-x86-release-static-zlib-static-ipv6-sspi-winssl
folder
- Download curl from
-
Get Sourcemod 1.9
- Retrieve Sourcemod 1.9 with:
git clone https://github.com/alliedmodders/sourcemod --recursive --branch 1.9-dev --single-branch sourcemod-1.9
- Add a new system variable named
SOURCEMOD19
with the path to the sourcemod-1.9 folder
- Retrieve Sourcemod 1.9 with:
-
Build MessageBot
- Retrieve MessageBot with:
git clone https://github.com/dordnung/MessageBot
- Reopen the
Developer Command Prompt for VS 2017
orDeveloper Command Prompt for VS 2015
at theMessageBot
folder - Type
vcvarsall.bat x86 8.1
and press ENTER - Type
msbuild msvc17/messagebot.sln /p:Platform="win32"
and press ENTER
- Retrieve MessageBot with: