-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.SYSl
38 lines (31 loc) · 1.41 KB
/
main.SYSl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
lang-imp Discord.SYSl 'Discord';
from Discord enter 'all';
lang requires = token;
lang requisit == nogui;
if(Discord.ready){
staus.set('idle', streaming: 'My AI inerface', 'https://www.twitch.tv/syslbot');
nogui.log('SYSbot is ready');
} else {
return(this);
}
for commands(mess, args, ping, stutter, random, uri){
for prefix{
Discord.prefix('!');
Discord.prefixIgnore(self, isBot);
Discord.commands('commands').endsWith('.SYSl');
}
uses('./commands/');
} ///The commands are the same as on file name as the actual command
So, !ping will only work if there is a command named ping.SYSl
Also, the 'uses' attribute is very important. Without classing that they are:
'.' - back a folder. '/commands' in commands. '/' - clarifies that 'commands' is a folder holding the actual commands
it wouldn't work///
if(mess.content.nsfw){
serv.aband(mess(tag(self) + 'will now leave this server due to a misuse detected by `NSFW Content Filters`').send)
} ///This part is kinda import as it locks out any NSFW-related items using
SYSl's built-in IMP AI to detect NSFW in images. It's a bit glitchy, but definitely works for messages that are
A simple NSFW image or NSFW message. The bot warns it's code in the case of it being a message, and after the
Third message (and only the third) will it do it's NSFW function.///
for token{
source.find('token').from('systemware.ga/');
}