-
Notifications
You must be signed in to change notification settings - Fork 0
시작하기
studio boran edited this page May 31, 2024
·
4 revisions
text: str
study_return_text(text)
return 값은 없습니다. study()에서 학습이 완료 되었을때 리턴하는 text를 정의 합니다. 정의되어 있지 않은 경우 study()에서 '{학습 한 키워드}를 학습하였습니다' 가 리턴됩니다.
ex): study_return_text('네! 알았어요!')
text: str
no_study_return_text(text)
return 값은 없습니다. study()에서 학습이 실패(이미 학습이 되어 있는 경우)할 결우 리턴하는 text를 정의 합니다. 정의되어 있지 않은 경우 study()에서 '{학습 한 키워드}는 이미 알고 있어요!' 가 리턴됩니다.
ex): no_study_return_text('으에?')
keyword, description, author_nickname: str
study(keyword, description, author_nickname)
return: str
keyword, description, author_nickname를 학습(저장) 합니다.
ex): study('안녕', '안녕!', '유저')
저장방식:
bot_info.json
keyword = {
'description': description,
'author_nickname': author_nickname
}
keyword: str
study_say(keyword)
return: str
study()에서 학습한 내용을 불러와 리턴 합니다.
ex): study_say('안녕')
return ex):
f'{description}\n`{author_nickname} 님이 알려주셨어요!`'
keyword: str
del_study(keyword)
return: str
study()에서 학습한 내용을 삭제합니다.
ex): del_study('안녕')