/w messgae_to_bot if message is from specific user then content will be saved to file. On next message file will be overwrite, no append. Could someone help me?
[R] Stealthbot plugin / script
Forum Index > BW General |
mca64[KDV]
Poland463 Posts
/w messgae_to_bot if message is from specific user then content will be saved to file. On next message file will be overwrite, no append. Could someone help me? | ||
mca64[KDV]
Poland463 Posts
| ||
mca64[KDV]
Poland463 Posts
+ Show Spoiler + Sub Event_WhisperFromUser(Username, Flags, Message, Ping) if username = "BSL-mca64" then Dim fso, file, filepath filepath="C:\use.txt" Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.OpenTextFile(filepath, 2, False) file.WriteLine Username & " vs " & Message file.Close Set file = Nothing end if End Sub Sub Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring, Banned) if username = "BSL-mca64" then Dim fso, file, filepath filepath="C:\use.txt" Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.OpenTextFile(filepath, 2, False) end if End Sub and it looks like here http://pl.twitch.tv/mca128/b/368424971 | ||
sabas123
Netherlands3122 Posts
| ||
IceCube
Croatia1403 Posts
![]() | ||
TelecoM
United States10673 Posts
| ||
| ||