Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const config = {
- username: "Cracked",
- command: "run",
- prefix: "."
- };
- function checkData(d) {
- if (d.message.startsWith('[Bot]')) {
- return null;
- }
- if (d && d.channelName === 'spam' && !d.hasOwnProperty('chatSent') && d.message === config.prefix + config.command) {
- d.username === config.username ? DoOwnerLogic(d) : DoLogic(d);
- d.chatSent = true;
- }
- }
- function DoLogic(d) {
- engine.chat('[Bot] ' + d.username + ', I will not run for you');
- }
- function DoOwnerLogic(d) {
- engine.chat('[Bot] ' + d.username + ', I was created with ChatGPT');
- }
- engine.on('msg', function(d) {
- checkData(d);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement