Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 918 Bytes

README.md

File metadata and controls

44 lines (35 loc) · 918 Bytes

sbot

a discord bot

setup

set up an app at https://discordapp.com/developers/applications/me

pip3 install -r requirements.txt
cp config.yaml{.example,}
$EDITOR config.yaml
./sbot

code eval

make the nsjail directory a sibling of the pbot directory:

cd ..
git clone --recursive git://github.com/google/nsjail.git
cd nsjail
make

if /sys/fs/cgroup/memory doesn't exist:

sudo mkdir /sys/fs/cgroup/{memory,pids}
sudo mount -t cgroup memory -o memory /sys/fs/cgroup/memory
sudo mount -t cgroup pids -o pids /sys/fs/cgroup/pids

set up NSJAIL memory/pids cgroups:

sudo mkdir /sys/fs/cgroup/{memory,pids}/NSJAIL
sudo chown -R $USER: /sys/fs/cgroup/{memory,pids}/NSJAIL

EVE price checker

download sqlite-latest.sqlite.bz2 from https://www.fuzzwork.co.uk/dump/

bunzip2 sqlite-latest.sqlite.bz2

edit config.yaml so that eve_db is the filepath of the sqlite file