Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. """
  3. Connection screen
  4.  
  5. Texts in this module will be shown to the user at login-time.
  6.  
  7. Evennia will look at global string variables (variables defined
  8. at the "outermost" scope of this module and use it as the
  9. connection screen. If there are more than one, Evennia will
  10. randomize which one it displays.
  11.  
  12. The commands available to the user when the connection screen is shown
  13. are defined in commands.default_cmdsets. UnloggedinCmdSet and the
  14. screen is read and displayed by the unlogged-in "look" command.
  15.  
  16. """
  17.  
  18. from django.conf import settings
  19. from evennia import utils
  20.  
  21. def read_connection_file():
  22. out = ''
  23. temp = open('/home/evennia/mygame/server/conf/connect.txt','r').readlines()
  24. for l in temp:
  25. out += l
  26. return out
  27.  
  28. CONNECTION_SCREEN = read_connection_file()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement