on_ready.py 958 B

12345678910111213141516171819202122232425262728293031
  1. from utils import (
  2. get_commands_from_file,
  3. create_and_get_roles_dict,
  4. on_ready_print,
  5. create_message_and_add_reactions
  6. )
  7. class Ready:
  8. _help_commands = get_commands_from_file("commands_list_divided_with_newline")
  9. _help_commands_for_output = ('~ ' + command for command in _help_commands)
  10. _help_commands_for_output = '\n'.join(_help_commands_for_output)
  11. _emojis = {
  12. ":smiling_face_with_3_hearts:": u"\U0001F970",
  13. ":train:": u"\U0001F68B",
  14. ":kimono:": u"\U0001F458"
  15. }
  16. _roles = create_and_get_roles_dict(_emojis)
  17. async def on_ready(self):
  18. await on_ready_print(self)
  19. # _channel = None
  20. #
  21. # for channel in self.get_all_channels():
  22. # if channel.name != 'bot':
  23. # _channel = channel
  24. #
  25. # _roles_for_send = await get_roles_for_send(self)
  26. # await create_message_and_add_reactions(self, _channel, _roles_for_send)