def _welcome(self, user): sound_effect_files = SoundeffectsLibrary.find_soundeffect_files(user) if sound_effect_files: effect = sound_effect_files[0] command = Command(user) command.update_health(1) PlaySoundeffectRequest(user=user, command=user).save() else: # Use non private method User(user)._find_or_create_user() send_twitch_msg(BeginFund(user).dropeffect())
def _welcome(self, user): sound_effect_files = SoundeffectsLibrary.find_soundeffect_files(user) if sound_effect_files: effect = sound_effect_files[0] command = Command(user) command.update_health(1) PlaySoundeffectRequest(user=user, command=user).save() else: # Use non private method User(user)._find_or_create_user() send_twitch_msg(BeginFund(user).dropeffect()) send_twitch_msg( f"Welcome @{user}! You need a Theme song (max 5 secs): !soundeffect YOUTUBE-URL @{user} 00:03 00:07" )